diff options
author | krion <krion@FreeBSD.org> | 2004-09-02 15:42:28 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-09-02 15:42:28 +0800 |
commit | 5551e5576ad9c422079f23c77839752c101b5c56 (patch) | |
tree | 6526a4d4a68691d104e83a5b0439528739871f9d /irc | |
parent | 21a918f623b20ad35452e451b96e745fe31bca6f (diff) | |
download | freebsd-ports-gnome-5551e5576ad9c422079f23c77839752c101b5c56.tar.gz freebsd-ports-gnome-5551e5576ad9c422079f23c77839752c101b5c56.tar.zst freebsd-ports-gnome-5551e5576ad9c422079f23c77839752c101b5c56.zip |
Fix build with gcc-3.4
PR: ports/71242
Submitted by: maintainer
Diffstat (limited to 'irc')
-rw-r--r-- | irc/xchat-gnome/files/patch-src_fe-gnome_fe-gnome.c | 29 | ||||
-rw-r--r-- | irc/xchat-gnome/files/patch-src_fe-gnome_userlist_gui.c | 48 |
2 files changed, 77 insertions, 0 deletions
diff --git a/irc/xchat-gnome/files/patch-src_fe-gnome_fe-gnome.c b/irc/xchat-gnome/files/patch-src_fe-gnome_fe-gnome.c new file mode 100644 index 000000000000..c700cb9bbd4c --- /dev/null +++ b/irc/xchat-gnome/files/patch-src_fe-gnome_fe-gnome.c @@ -0,0 +1,29 @@ +--- src/fe-gnome/fe-gnome.c.orig Wed Apr 28 02:38:33 2004 ++++ src/fe-gnome/fe-gnome.c Wed Sep 1 14:16:10 2004 +@@ -249,7 +249,7 @@ + add_transfer(dcc); + break; + +- default: ++ default: ; + } + } + +@@ -260,7 +260,7 @@ + update_transfer(dcc); + break; + +- default: ++ default: ; + } + } + +@@ -272,7 +272,7 @@ + remove_transfer(dcc); + break; + +- default: ++ default: ; + } + } + diff --git a/irc/xchat-gnome/files/patch-src_fe-gnome_userlist_gui.c b/irc/xchat-gnome/files/patch-src_fe-gnome_userlist_gui.c new file mode 100644 index 000000000000..5e61adbbe728 --- /dev/null +++ b/irc/xchat-gnome/files/patch-src_fe-gnome_userlist_gui.c @@ -0,0 +1,48 @@ +--- src/fe-gnome/userlist_gui.c.orig Wed Sep 1 14:19:24 2004 ++++ src/fe-gnome/userlist_gui.c Wed Sep 1 14:21:39 2004 +@@ -52,6 +52,22 @@ + g_signal_connect(G_OBJECT(userlist_view), "button_press_event", G_CALLBACK(userlist_click), NULL); + } + ++struct User *userlist_get_selected() { ++ GtkWidget *treeview; ++ GtkTreeSelection *select; ++ GtkTreeModel *model; ++ GtkTreeIter iter; ++ struct User *u; ++ ++ treeview = glade_xml_get_widget(gui.xml, "userlist"); ++ select = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); ++ if(gtk_tree_selection_get_selected(select, &model, &iter)) { ++ gtk_tree_model_get(model, &iter, 2, &u, -1); ++ return u; ++ } ++ return NULL; ++} ++ + gboolean userlist_click(GtkWidget *view, GdkEventButton *event, gpointer data) { + GtkTreePath *path; + GtkTreeSelection *select; +@@ -77,22 +93,6 @@ + return TRUE; + } + return FALSE; +-} +- +-struct User *userlist_get_selected() { +- GtkWidget *treeview; +- GtkTreeSelection *select; +- GtkTreeModel *model; +- GtkTreeIter iter; +- struct User *u; +- +- treeview = glade_xml_get_widget(gui.xml, "userlist"); +- select = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); +- if(gtk_tree_selection_get_selected(select, &model, &iter)) { +- gtk_tree_model_get(model, &iter, 2, &u, -1); +- return u; +- } +- return NULL; + } + + void userlist_context(GtkWidget *treeview, struct User *user) { |