diff options
author | trevor <trevor@FreeBSD.org> | 2004-04-20 03:42:28 +0800 |
---|---|---|
committer | trevor <trevor@FreeBSD.org> | 2004-04-20 03:42:28 +0800 |
commit | bb4d30f40baee17d8de0c284982c28e20e2b3011 (patch) | |
tree | 16fbec258421a74dd1a3688b3bd1290058d1d388 /x11-wm | |
parent | e3137b9907be0c34ab548b6f874af36e84e00c68 (diff) | |
download | freebsd-ports-gnome-bb4d30f40baee17d8de0c284982c28e20e2b3011.tar.gz freebsd-ports-gnome-bb4d30f40baee17d8de0c284982c28e20e2b3011.tar.zst freebsd-ports-gnome-bb4d30f40baee17d8de0c284982c28e20e2b3011.zip |
Enable compilation with GCC 2.X.
PR: 64645
Submitted by: vs
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/obconf/Makefile | 8 | ||||
-rw-r--r-- | x11-wm/obconf/files/patch-src_handlers.c | 73 |
2 files changed, 74 insertions, 7 deletions
diff --git a/x11-wm/obconf/Makefile b/x11-wm/obconf/Makefile index 2647c0303c3a..f10382922e1d 100644 --- a/x11-wm/obconf/Makefile +++ b/x11-wm/obconf/Makefile @@ -26,12 +26,6 @@ USE_GMAKE= yes USE_GNOME= gtk20 libglade2 USE_X_PREFIX= yes -.include <bsd.port.pre.mk> - -.if ${OSVERSION} < 500000 -BROKEN= "Does not compile" -.endif - pre-configure: @${CAT} ${PKGMESSAGE} @${ECHO_CMD} @@ -65,4 +59,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/src/obconf.glade \ ${PREFIX}/share/openbox/obconf -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/x11-wm/obconf/files/patch-src_handlers.c b/x11-wm/obconf/files/patch-src_handlers.c new file mode 100644 index 000000000000..86bde7750a6c --- /dev/null +++ b/x11-wm/obconf/files/patch-src_handlers.c @@ -0,0 +1,73 @@ +Enable compilation with GCC 2.X. +author: Volker Stolz + +--- src/handlers.c.orig Wed Mar 24 09:36:08 2004 ++++ src/handlers.c Wed Mar 24 09:36:16 2004 +@@ -41,6 +41,10 @@ + + void setup_behavior_tab() + { ++ GtkWidget *winresist_l; ++ GtkWidget *edgeresist_l; ++ GtkSizeGroup *group2; ++ + GtkWidget *winresist = glade_xml_get_widget(glade, "resist_window"); + GtkWidget *edgeresist = glade_xml_get_widget(glade, "resist_edge"); + GtkSizeGroup *group1 = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); +@@ -48,9 +52,9 @@ + gtk_size_group_add_widget(group1, winresist); + gtk_size_group_add_widget(group1, edgeresist); + +- GtkWidget *winresist_l = glade_xml_get_widget(glade, "resist_window_label"); +- GtkWidget *edgeresist_l = glade_xml_get_widget(glade, "resist_edge_label"); +- GtkSizeGroup *group2 = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); ++ winresist_l = glade_xml_get_widget(glade, "resist_window_label"); ++ edgeresist_l = glade_xml_get_widget(glade, "resist_edge_label"); ++ group2 = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); + + gtk_size_group_add_widget(group2, winresist_l); + gtk_size_group_add_widget(group2, edgeresist_l); +@@ -58,6 +62,10 @@ + + void setup_dock_tab() + { ++ GtkWidget *posi_l; ++ GtkWidget *dir_l; ++ GtkSizeGroup *group2; ++ + GtkWidget *posi = glade_xml_get_widget(glade, "dock_position"); + GtkWidget *dir = glade_xml_get_widget(glade, "dock_direction"); + GtkSizeGroup *group1 = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); +@@ -65,9 +73,9 @@ + gtk_size_group_add_widget(group1, posi); + gtk_size_group_add_widget(group1, dir); + +- GtkWidget *posi_l = glade_xml_get_widget(glade, "dock_position_label"); +- GtkWidget *dir_l = glade_xml_get_widget(glade, "dock_direction_label"); +- GtkSizeGroup *group2 = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); ++ posi_l = glade_xml_get_widget(glade, "dock_position_label"); ++ dir_l = glade_xml_get_widget(glade, "dock_direction_label"); ++ group2 = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); + + gtk_size_group_add_widget(group2, posi_l); + gtk_size_group_add_widget(group2, dir_l); +@@ -979,15 +987,16 @@ + const gchar *new_text, + gpointer data) + { +- if (mapping) return; +- +- GtkTreePath *path = gtk_tree_path_new_from_string (path_string); ++ GtkTreePath *path; + GtkTreeIter it; + gchar *old_text; + GList *lit; + gint i; + xmlNodePtr n, c; + ++ if (mapping) return; ++ ++ path = gtk_tree_path_new_from_string (path_string); + gtk_tree_model_get_iter(GTK_TREE_MODEL(desktop_store), &it, path); + + gtk_tree_model_get(GTK_TREE_MODEL(desktop_store), &it, 0, &old_text, -1); |