From 2cd0805e70202c831d8983142bc9efb47c2d931c Mon Sep 17 00:00:00 2001 From: kwm Date: Fri, 17 Dec 2004 21:35:05 +0000 Subject: Add 2 patches to fix the build with gtk-2.6.0. Submitted by: joeldiaz@bellsouth.net git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3259 df743ca5-7f9a-e211-a948-0013205c9059 --- deskutils/gnome-utils/files/patch-gsearchtool.c | 11 +++++++++++ deskutils/gnome-utils/files/patch-screenshot-dialog.c | 11 +++++++++++ deskutils/gnomeutils2/files/patch-gsearchtool.c | 11 +++++++++++ deskutils/gnomeutils2/files/patch-screenshot-dialog.c | 11 +++++++++++ 4 files changed, 44 insertions(+) create mode 100644 deskutils/gnome-utils/files/patch-gsearchtool.c create mode 100644 deskutils/gnome-utils/files/patch-screenshot-dialog.c create mode 100644 deskutils/gnomeutils2/files/patch-gsearchtool.c create mode 100644 deskutils/gnomeutils2/files/patch-screenshot-dialog.c diff --git a/deskutils/gnome-utils/files/patch-gsearchtool.c b/deskutils/gnome-utils/files/patch-gsearchtool.c new file mode 100644 index 000000000..796a47fa8 --- /dev/null +++ b/deskutils/gnome-utils/files/patch-gsearchtool.c @@ -0,0 +1,11 @@ +--- gsearchtool/gsearchtool.c.orig Fri Dec 17 10:31:38 2004 ++++ gsearchtool/gsearchtool.c Fri Dec 17 10:33:11 2004 +@@ -2025,7 +2025,7 @@ + + gtk_table_attach(GTK_TABLE(interface.table), label, 0, 1, 1, 2, GTK_FILL, 0, 0, 0); + +- interface.look_in_folder_entry = gtk_file_chooser_button_new (_("Browse")); ++ interface.look_in_folder_entry = gtk_file_chooser_button_new (_("Browse"), GTK_FILE_CHOOSER_ACTION_OPEN); + gtk_file_chooser_set_action (GTK_FILE_CHOOSER (interface.look_in_folder_entry), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); + gtk_label_set_mnemonic_widget (GTK_LABEL(label), GTK_WIDGET (interface.look_in_folder_entry)); + gtk_table_attach (GTK_TABLE(interface.table), interface.look_in_folder_entry, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0, 0, 0); diff --git a/deskutils/gnome-utils/files/patch-screenshot-dialog.c b/deskutils/gnome-utils/files/patch-screenshot-dialog.c new file mode 100644 index 000000000..e0c3b795b --- /dev/null +++ b/deskutils/gnome-utils/files/patch-screenshot-dialog.c @@ -0,0 +1,11 @@ +--- gnome-screenshot/screenshot-dialog.c.orig Fri Dec 17 10:34:55 2004 ++++ gnome-screenshot/screenshot-dialog.c Fri Dec 17 10:35:38 2004 +@@ -210,7 +210,7 @@ + dialog->filename_entry = glade_xml_get_widget (dialog->xml, "filename_entry"); + file_chooser_frame = glade_xml_get_widget (dialog->xml, "file_chooser_frame"); + +- dialog->save_widget = gtk_file_chooser_button_new ("Select a directory"); ++ dialog->save_widget = gtk_file_chooser_button_new ("Select a directory",GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); + gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog->save_widget), FALSE); + gtk_file_chooser_set_action (GTK_FILE_CHOOSER (dialog->save_widget), + GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); diff --git a/deskutils/gnomeutils2/files/patch-gsearchtool.c b/deskutils/gnomeutils2/files/patch-gsearchtool.c new file mode 100644 index 000000000..796a47fa8 --- /dev/null +++ b/deskutils/gnomeutils2/files/patch-gsearchtool.c @@ -0,0 +1,11 @@ +--- gsearchtool/gsearchtool.c.orig Fri Dec 17 10:31:38 2004 ++++ gsearchtool/gsearchtool.c Fri Dec 17 10:33:11 2004 +@@ -2025,7 +2025,7 @@ + + gtk_table_attach(GTK_TABLE(interface.table), label, 0, 1, 1, 2, GTK_FILL, 0, 0, 0); + +- interface.look_in_folder_entry = gtk_file_chooser_button_new (_("Browse")); ++ interface.look_in_folder_entry = gtk_file_chooser_button_new (_("Browse"), GTK_FILE_CHOOSER_ACTION_OPEN); + gtk_file_chooser_set_action (GTK_FILE_CHOOSER (interface.look_in_folder_entry), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); + gtk_label_set_mnemonic_widget (GTK_LABEL(label), GTK_WIDGET (interface.look_in_folder_entry)); + gtk_table_attach (GTK_TABLE(interface.table), interface.look_in_folder_entry, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0, 0, 0); diff --git a/deskutils/gnomeutils2/files/patch-screenshot-dialog.c b/deskutils/gnomeutils2/files/patch-screenshot-dialog.c new file mode 100644 index 000000000..e0c3b795b --- /dev/null +++ b/deskutils/gnomeutils2/files/patch-screenshot-dialog.c @@ -0,0 +1,11 @@ +--- gnome-screenshot/screenshot-dialog.c.orig Fri Dec 17 10:34:55 2004 ++++ gnome-screenshot/screenshot-dialog.c Fri Dec 17 10:35:38 2004 +@@ -210,7 +210,7 @@ + dialog->filename_entry = glade_xml_get_widget (dialog->xml, "filename_entry"); + file_chooser_frame = glade_xml_get_widget (dialog->xml, "file_chooser_frame"); + +- dialog->save_widget = gtk_file_chooser_button_new ("Select a directory"); ++ dialog->save_widget = gtk_file_chooser_button_new ("Select a directory",GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); + gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog->save_widget), FALSE); + gtk_file_chooser_set_action (GTK_FILE_CHOOSER (dialog->save_widget), + GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); -- cgit v1.2.3