diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-09-02 07:42:28 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-09-02 07:42:28 +0000 |
commit | 6563ecfb60b6af03cf93209e12b4cea6891abf31 (patch) | |
tree | 8716c4991514a7eaa1bc1d67c55a701eca7f09a0 /irc/xchat-gnome | |
parent | Fix build with gcc-3.4 (diff) |
Fix build with gcc-3.4
PR: ports/71242
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=117902
Diffstat (limited to 'irc/xchat-gnome')
-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) { |