mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Fix build with gcc-3.4
PR: ports/71242 Submitted by: maintainer
This commit is contained in:
parent
fd8c0c8e3f
commit
6563ecfb60
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117902
29
irc/xchat-gnome/files/patch-src_fe-gnome_fe-gnome.c
Normal file
29
irc/xchat-gnome/files/patch-src_fe-gnome_fe-gnome.c
Normal file
@ -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: ;
|
||||
}
|
||||
}
|
||||
|
48
irc/xchat-gnome/files/patch-src_fe-gnome_userlist_gui.c
Normal file
48
irc/xchat-gnome/files/patch-src_fe-gnome_userlist_gui.c
Normal file
@ -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) {
|
Loading…
Reference in New Issue
Block a user