]> spindle.queued.net Git - midori/commitdiff
midori_location_action_set_icon_for_uri is unneeded
authorChristian Dywan <christian@twotoasts.de>
Tue, 24 Jan 2012 22:33:54 +0000 (23:33 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 24 Jan 2012 22:57:40 +0000 (23:57 +0100)
midori/midori-browser.c
midori/midori-locationaction.c

index 859c3aa1d912b83d78decd402a8508a7171ccb6b..72ab33b7bccbfa9584431a3688a7aae53c4f9bcb 100644 (file)
@@ -484,17 +484,12 @@ midori_view_notify_icon_cb (MidoriView*    view,
                             GParamSpec*    pspec,
                             MidoriBrowser* browser)
 {
-    const gchar* uri;
     GtkAction* action;
 
     if (midori_browser_get_current_tab (browser) != (GtkWidget*)view)
         return;
 
-    uri = midori_view_get_display_uri (view);
     action = _action_by_name (browser, "Location");
-    if (browser->maximum_history_age)
-        midori_location_action_set_icon_for_uri (
-        MIDORI_LOCATION_ACTION (action), midori_view_get_icon (view), uri);
     midori_location_action_set_icon (MIDORI_LOCATION_ACTION (action),
                                      midori_view_get_icon (view));
     if (sokoke_is_app_or_private ())
index 64e652b455ed067c72c7cac1c177c34b02dd16f2..f725032953c32177757f7de6a16e9bd6944d5626 100644 (file)
@@ -1536,30 +1536,22 @@ midori_location_action_add_item (MidoriLocationAction* location_action,
     #endif
 }
 
+/**
+ * midori_location_action_set_icon_for_uri:
+ * @location_action: a #MidoriLocationAction
+ * @icon: a #GdkPixbuf
+ * @uri: an URI string
+ *
+ * Sets the icon for the specified URI.
+ *
+ * Deprecated: 0.4.4
+ **/
 void
 midori_location_action_set_icon_for_uri (MidoriLocationAction* location_action,
                                          GdkPixbuf*            icon,
                                          const gchar*          uri)
 {
-    #if !HAVE_HILDON
-    GSList* proxies;
-    #endif
-
-    g_return_if_fail (MIDORI_IS_LOCATION_ACTION (location_action));
-    g_return_if_fail (!icon || GDK_IS_PIXBUF (icon));
-    g_return_if_fail (uri != NULL);
-
-    #if !HAVE_HILDON
-    proxies = gtk_action_get_proxies (GTK_ACTION (location_action));
-
-    for (; proxies != NULL; proxies = g_slist_next (proxies))
-    if (GTK_IS_TOOL_ITEM (proxies->data))
-    {
-        GtkWidget* entry = midori_location_action_entry_for_proxy (proxies->data);
-        gtk_icon_entry_set_icon_from_pixbuf (GTK_ICON_ENTRY (entry),
-            GTK_ICON_ENTRY_PRIMARY, icon);
-    }
-    #endif
+    midori_location_action_set_icon (location_action, icon);
 }
 
 /**