]> spindle.queued.net Git - midori/commitdiff
Don't use GTK_WIDGET_SET_FLAGS in browser and panel
authorChristian Dywan <christian@twotoasts.de>
Mon, 4 Oct 2010 19:36:26 +0000 (21:36 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 4 Oct 2010 22:04:28 +0000 (00:04 +0200)
midori/midori-browser.c
midori/midori-panel.c
midori/sokoke.h

index 8f81ff9a6949b394c9fd317b578e5e5765bb07c4..69be36ebf4cdb05f26887f1d4c4fceb472beb5f7 100644 (file)
@@ -1586,10 +1586,8 @@ _midori_browser_add_tab (MidoriBrowser* browser,
     KatzeItem* item;
     guint n;
 
-    GTK_WIDGET_SET_FLAGS (view, GTK_CAN_FOCUS);
-
+    gtk_widget_set_can_focus (view, TRUE);
     tab_label = midori_view_get_proxy_tab_label (MIDORI_VIEW (view));
-
     item = midori_view_get_proxy_item (MIDORI_VIEW (view));
     g_object_ref (item);
     katze_array_add_item (browser->proxy_array, item);
@@ -5928,7 +5926,7 @@ midori_browser_init (MidoriBrowser* browser)
     scrolled = gtk_scrolled_window_new (NULL, NULL);
     gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled),
                                     GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-    GTK_WIDGET_SET_FLAGS (scrolled, GTK_CAN_FOCUS);
+    gtk_widget_set_can_focus (scrolled, TRUE);
     gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled),
                                          GTK_SHADOW_ETCHED_IN);
     gtk_box_pack_start (GTK_BOX (browser->inspector), scrolled, TRUE, TRUE, 0);
index 07ecfff10319806761fd0a3e3523e0ccdd8a2581..ed4227b6b349b2b14ef19d46512c413b4263acb8 100644 (file)
@@ -733,7 +733,7 @@ midori_panel_append_page (MidoriPanel*    panel,
         gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled),
                                         GTK_POLICY_AUTOMATIC,
                                         GTK_POLICY_AUTOMATIC);
-        GTK_WIDGET_SET_FLAGS (scrolled, GTK_CAN_FOCUS);
+        gtk_widget_set_can_focus (scrolled, TRUE);
         gtk_widget_show (scrolled);
         gobject_class = G_OBJECT_GET_CLASS (viewable);
         if (GTK_WIDGET_CLASS (gobject_class)->set_scroll_adjustments_signal)
index 105aed0ca081ad634f37fbc96b20263785660496..29a9cfb3e44f1a9e62a11f4499ca4433e9637d10 100644 (file)
@@ -50,6 +50,8 @@
     #define gtk_widget_has_focus(widget) GTK_WIDGET_HAS_FOCUS (widget)
     #define gtk_widget_get_visible(widget) GTK_WIDGET_VISIBLE (widget)
     #define gtk_widget_get_sensitive(widget) GTK_WIDGET_IS_SENSITIVE (widget)
+    #define gtk_widget_set_can_focus(widget,flag) \
+        GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_FOCUS)
 #endif
 
 #if !GTK_CHECK_VERSION (2, 20, 0)