summaryrefslogtreecommitdiff
path: root/ftp/downloader/files/patch-main_face_prefs.cc
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-06-12 23:16:54 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-06-12 23:16:54 +0000
commit3209c61b48e9e1375247e72dcdca8aae458a9cc1 (patch)
tree3ba10fae2eea9318fdf829ca30affc0812aca1bf /ftp/downloader/files/patch-main_face_prefs.cc
parentupdate to 0.3d72 (diff)
* Fix build with latest GTK+-2 [1]
* Convert to new GNOME infrastructure PR: 53262 [1] Submitted by: Pav Lucistnik <pav@oook.cz> [1]
Notes
Notes: svn path=/head/; revision=82899
Diffstat (limited to '')
-rw-r--r--ftp/downloader/files/patch-main_face_prefs.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/ftp/downloader/files/patch-main_face_prefs.cc b/ftp/downloader/files/patch-main_face_prefs.cc
new file mode 100644
index 000000000000..289f7f97efa6
--- /dev/null
+++ b/ftp/downloader/files/patch-main_face_prefs.cc
@@ -0,0 +1,23 @@
+--- main/face/prefs.cc.orig Wed Nov 6 07:53:28 2002
++++ main/face/prefs.cc Fri Jun 13 00:50:49 2003
+@@ -810,7 +810,7 @@
+ gint i;
+ for (i = 0; (unsigned int)i <count; i++){
+ menu_item = gtk_radio_menu_item_new_with_label (group, labels[i]);
+- group = gtk_radio_menu_item_group (GTK_RADIO_MENU_ITEM (menu_item));
++ group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menu_item));
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
+ if (i==TMPCFG.SEARCH_HOST)
+ gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM (menu_item), TRUE);
+@@ -1465,9 +1465,10 @@
+ return;
+ };
+ if (equal(label,_("FTP search"))){
++ GSList *group;
+ sscanf(gtk_entry_get_text(GTK_ENTRY(D4XPWS.search_ping_times)),"%u",&TMPCFG.SEARCH_PING_TIMES);
+ sscanf(gtk_entry_get_text(GTK_ENTRY(D4XPWS.search_entries)),"%u",&TMPCFG.SEARCH_ENTRIES);
+- GSList *group=gtk_radio_menu_item_group((GtkRadioMenuItem *)((GtkOptionMenu *)D4XPWS.search_host)->menu_item);
++ group = gtk_radio_menu_item_get_group((GtkRadioMenuItem *)((GtkOptionMenu *)D4XPWS.search_host)->menu_item);
+ int i=D4X_SEARCH_ENGINES.count()-1;
+ if (i<0) i=0;
+ while(group && !((GtkCheckMenuItem *)(group->data))->active){