From 92415076b9a7601cec26eea72f9a6b6ac2ee848f Mon Sep 17 00:00:00 2001 From: Florian Boor Date: Tue, 22 Aug 2006 15:47:27 +0000 Subject: gpe-screenshot: Add fix for segfault uploading files in current release. --- packages/gpe-screenshot/files/.mtn2git_empty | 0 packages/gpe-screenshot/files/fix-segfault.patch | 36 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 packages/gpe-screenshot/files/.mtn2git_empty create mode 100644 packages/gpe-screenshot/files/fix-segfault.patch (limited to 'packages/gpe-screenshot/files') diff --git a/packages/gpe-screenshot/files/.mtn2git_empty b/packages/gpe-screenshot/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/gpe-screenshot/files/fix-segfault.patch b/packages/gpe-screenshot/files/fix-segfault.patch new file mode 100644 index 0000000000..dc185a9b51 --- /dev/null +++ b/packages/gpe-screenshot/files/fix-segfault.patch @@ -0,0 +1,36 @@ +Index: src/gpe-screenshot.c +=================================================================== +RCS file: /cvs/gpe/base/gpe-screenshot/src/gpe-screenshot.c,v +retrieving revision 1.1 +retrieving revision 1.2 +diff -u -r1.1 -r1.2 +--- src/gpe-screenshot.c 1 Nov 2005 20:54:38 -0000 1.1 ++++ src/gpe-screenshot.c 10 Aug 2006 15:07:21 -0000 1.2 +@@ -334,10 +334,9 @@ + { + GtkWidget *icon = gtk_image_new_from_stock (GTK_STOCK_JUMP_TO, GTK_ICON_SIZE_BUTTON); + +- g_object_set (mainDlg->ok_button, "use-stock", FALSE); +- g_object_set (mainDlg->ok_button, "use-underline", TRUE); +- g_object_set (mainDlg->ok_button, "label", "_Upload"); +- g_object_set (mainDlg->ok_button, "image", GTK_WIDGET (icon)); ++ gtk_button_set_use_stock (mainDlg->ok_button, FALSE); ++ gtk_button_set_label (mainDlg->ok_button, "_Upload"); ++ gtk_button_set_image (mainDlg->ok_button, icon); + + gtk_widget_set_sensitive (GTK_WIDGET (mainDlg->entry), FALSE); + gtk_widget_set_sensitive (GTK_WIDGET (mainDlg->browse_button), FALSE); +@@ -347,10 +346,9 @@ + GtkWidget *icon = gtk_image_new_from_stock (GTK_STOCK_SAVE, GTK_ICON_SIZE_BUTTON); + + /* for some odd reason use-stock doesn't have any effect. set the image manually...*/ +- g_object_set (mainDlg->ok_button, "use-stock", TRUE); +- g_object_set (mainDlg->ok_button, "use-underline", TRUE); +- g_object_set (mainDlg->ok_button, "label", GTK_STOCK_SAVE); +- g_object_set (mainDlg->ok_button, "image", GTK_WIDGET (icon)); ++ gtk_button_set_label (mainDlg->ok_button, GTK_STOCK_SAVE); ++ gtk_button_set_use_stock (mainDlg->ok_button, TRUE); ++ gtk_button_set_image (mainDlg->ok_button, icon); + + gtk_widget_set_sensitive (GTK_WIDGET (mainDlg->entry), TRUE); + gtk_widget_set_sensitive (GTK_WIDGET (mainDlg->browse_button), TRUE); -- cgit v1.2.3