ports/53262: [patch] unbreak ftp/downloader
Pav Lucistnik
pav at oook.cz
Thu Jun 12 23:00:25 UTC 2003
>Number: 53262
>Category: ports
>Synopsis: [patch] unbreak ftp/downloader
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 12 16:00:23 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Pav Lucistnik
>Release: FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hood.oook.cz 5.1-RELEASE FreeBSD 5.1-RELEASE #1: Fri Jun 6 22:18:38 CEST 2003 root at hood.oook.cz:/usr/obj/usr/src/sys/PAV i386
>Description:
Downloader for X, GNOME base download manager (ftp/downloader) no longer build
with new Gtk+. It uses gtk_radio_menu_item_group() call that is deprecated
and was removed from latest release of Gtk. Attached patch converts
there calls to modern gtk_radio_menu_item_set_group() calls.
Put the attached file under files/patch-main::face::prefs.cc
>How-To-Repeat:
>Fix:
--- 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));
+ gtk_radio_menu_item_set_group (GTK_RADIO_MENU_ITEM (menu_item), group);
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);
+ gtk_radio_menu_item_set_group((GtkRadioMenuItem *)((GtkOptionMenu *)D4XPWS.search_host)->menu_item, group);
int i=D4X_SEARCH_ENGINES.count()-1;
if (i<0) i=0;
while(group && !((GtkCheckMenuItem *)(group->data))->active){
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list