[gnome-video-arcade] Adapt gva-columns.c to gtk+-3.0.



commit bbf1f938fb4c2a0dd9b8f7b5ed275c5384f62f23
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Jan 30 20:40:30 2011 -0500

    Adapt gva-columns.c to gtk+-3.0.

 src/gva-columns.c |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/src/gva-columns.c b/src/gva-columns.c
index 9f46f98..b3a9956 100644
--- a/src/gva-columns.c
+++ b/src/gva-columns.c
@@ -338,14 +338,17 @@ columns_popup_menu_cb (GtkTreeViewColumn *column)
 static void
 columns_setup_popup_menu (GtkTreeViewColumn *column)
 {
-        g_return_if_fail (column->button != NULL);
+        GtkWidget *button;
+
+        button = gtk_tree_view_column_get_button (column);
+        g_return_if_fail (GTK_IS_WIDGET (button));
 
         g_signal_connect_swapped (
-                column->button, "button-press-event",
+                button, "button-press-event",
                 G_CALLBACK (columns_button_press_event_cb), column);
 
         g_signal_connect_swapped (
-                column->button, "popup-menu",
+                button, "popup-menu",
                 G_CALLBACK (columns_popup_menu_cb), column);
 
 }
@@ -500,7 +503,7 @@ columns_factory_input_players (GvaGameStoreColumn column_id)
         gint ii;
 
         /* Remember, we don't own the pixbuf reference. */
-        pixbuf = columns_get_icon_name ("stock_person");
+        pixbuf = columns_get_icon_name ("avatar-default");
 
         column = gtk_tree_view_column_new ();
         gtk_tree_view_column_set_reorderable (column, TRUE);
@@ -1351,10 +1354,13 @@ gva_columns_save (GtkTreeView *view)
 
         g_return_if_fail (GTK_IS_TREE_VIEW (view));
 
+#if 0
         /* This function is also a "columns-changed" signal handler.
-         * Abort the save if the tree view is being destroyed. */
+         * Abort the save if the tree view is being destroyed.
+         * FIXME Needs to be adapted to gtk+-3.0. */
         if (GTK_OBJECT_FLAGS (view) & GTK_IN_DESTRUCTION)
                 return;
+#endif
 
         client = gconf_client_get_default ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]