diff options
Diffstat (limited to 'x11/gtk2-chtheme/patches/patch-ag')
-rw-r--r-- | x11/gtk2-chtheme/patches/patch-ag | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/x11/gtk2-chtheme/patches/patch-ag b/x11/gtk2-chtheme/patches/patch-ag new file mode 100644 index 00000000000..1374c16a286 --- /dev/null +++ b/x11/gtk2-chtheme/patches/patch-ag @@ -0,0 +1,54 @@ +$NetBSD: patch-ag,v 1.1 2005/01/21 20:17:58 kristerw Exp $ + +--- theme_sel.c.orig Fri Jan 21 20:58:28 2005 ++++ theme_sel.c Fri Jan 21 21:00:30 2005 +@@ -53,6 +53,9 @@ + + GtkWidget *create_theme_sel(void) + { ++ GtkTreeViewColumn *column; ++ GtkTreeSelection *selection; ++ GtkWidget *sw; + GtkListStore *store = gtk_list_store_new(1, G_TYPE_STRING); + + gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(store), 0, +@@ -65,7 +68,7 @@ + gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(theme_list), TRUE); + gtk_tree_view_set_search_column(GTK_TREE_VIEW(theme_list), 0); + +- GtkTreeSelection *selection = ++ selection = + gtk_tree_view_get_selection(GTK_TREE_VIEW(theme_list)); + + gtk_tree_selection_set_mode(selection, GTK_SELECTION_BROWSE); +@@ -81,11 +84,12 @@ + + do + { ++ GtkTreePath *p; + gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, 0, &newtheme, -1); + if (strcmp(newtheme, get_theme()) != 0) + continue; + +- GtkTreePath *p = gtk_tree_model_get_path(GTK_TREE_MODEL(store), &iter); ++ p = gtk_tree_model_get_path(GTK_TREE_MODEL(store), &iter); + + gtk_tree_view_set_cursor(GTK_TREE_VIEW(theme_list), p, NULL, FALSE); + gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(theme_list), p, NULL, TRUE, 0.5, 0); +@@ -97,14 +101,14 @@ + + g_object_unref(G_OBJECT(store)); + +- GtkTreeViewColumn *column = ++ column = + gtk_tree_view_column_new_with_attributes("Theme", + gtk_cell_renderer_text_new(), "text", 0, NULL); + + gtk_tree_view_column_set_sort_column_id(column, 0); + gtk_tree_view_append_column(GTK_TREE_VIEW(theme_list), column); + +- GtkWidget *sw = gtk_scrolled_window_new(NULL, NULL); ++ sw = gtk_scrolled_window_new(NULL, NULL); + + gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); |