]> spindle.queued.net Git - midori/commitdiff
Remove freeze, thaw and set_uri from MidoriLocationAction
authorChristian Dywan <christian@twotoasts.de>
Sat, 31 Jul 2010 11:59:48 +0000 (13:59 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 31 Jul 2010 11:59:48 +0000 (13:59 +0200)
midori/midori-browser.c
midori/midori-locationaction.c
midori/midori-locationaction.h

index f3d1d71ae447580f0f516fe812f0a833aa804cf0..0e3e7633366d0eea0c11b3dcd77a051db953c87f 100644 (file)
@@ -406,7 +406,7 @@ _midori_browser_set_statusbar_text (MidoriBrowser* browser,
         MidoriLocationAction* location_action = MIDORI_LOCATION_ACTION (action);
         if (text && *text)
         {
-            midori_location_action_set_uri (location_action, browser->statusbar_text);
+            midori_location_action_set_text (location_action, browser->statusbar_text);
             midori_location_action_set_icon (location_action, NULL);
             midori_location_action_set_secondary_icon (location_action, NULL);
         }
@@ -421,7 +421,7 @@ _midori_browser_set_statusbar_text (MidoriBrowser* browser,
                 else
                     midori_location_action_set_secondary_icon (
                         location_action, GTK_STOCK_JUMP_TO);
-                midori_location_action_set_uri (location_action,
+                midori_location_action_set_text (location_action,
                     midori_view_get_display_uri (MIDORI_VIEW (view)));
                 midori_location_action_set_icon (location_action,
                     midori_view_get_icon (MIDORI_VIEW (view)));
@@ -556,7 +556,7 @@ midori_view_notify_load_status_cb (GtkWidget*      widget,
     {
         if (midori_view_get_load_status (view) == MIDORI_LOAD_COMMITTED)
         {
-            midori_location_action_set_uri (
+            midori_location_action_set_text (
                 MIDORI_LOCATION_ACTION (action), uri);
             midori_location_action_set_secondary_icon (
                 MIDORI_LOCATION_ACTION (action), GTK_STOCK_JUMP_TO);
@@ -601,7 +601,7 @@ midori_view_notify_uri_cb (GtkWidget*     view,
     {
         const gchar* uri = midori_view_get_display_uri (MIDORI_VIEW (view));
         GtkAction* action = _action_by_name (browser, "Location");
-        midori_location_action_set_uri (MIDORI_LOCATION_ACTION (action), uri);
+        midori_location_action_set_text (MIDORI_LOCATION_ACTION (action), uri);
     }
 }
 
@@ -3492,7 +3492,7 @@ _action_location_reset_uri (GtkAction*     action,
     const gchar* uri;
 
     uri = midori_browser_get_current_uri (browser);
-    midori_location_action_set_uri (MIDORI_LOCATION_ACTION (action), uri);
+    midori_location_action_set_text (MIDORI_LOCATION_ACTION (action), uri);
 }
 
 
index 29484d9e61fb2b80ec7068ff856decc5f816c10f..5b77ac58a36ab511935eb6cfcdcc25f81ac1c3e7 100644 (file)
@@ -568,34 +568,6 @@ midori_location_action_entry_for_proxy (GtkWidget* proxy)
     return entry;
 }
 
-/**
- * midori_location_action_freeze:
- * @location_action: a #MidoriLocationAction
- *
- * Freezing of the action doesn't do anything.
- *
- * Deprecated: 0.2.3
- **/
-void
-midori_location_action_freeze (MidoriLocationAction* location_action)
-{
-    /* Nothing to do */
-}
-
-/**
- * midori_location_action_thaw:
- * @location_action: a #MidoriLocationAction
- *
- * Thawing of the action doesn't do anything.
- *
- * Deprecated: 0.2.3
- **/
-void
-midori_location_action_thaw (MidoriLocationAction* location_action)
-{
-    /* Nothing to do */
-}
-
 static void
 midori_location_action_init (MidoriLocationAction* location_action)
 {
@@ -1433,25 +1405,6 @@ midori_location_action_set_text (MidoriLocationAction* location_action,
     g_object_unref (icon);
 }
 
-/**
- * midori_location_action_set_uri:
- * @location_action: a #MidoriLocationAction
- * @uri: an URI string
- *
- * Sets the entry URI to @uri and, if applicable, updates the icon.
- *
- * Deprecated: 0.2.0
- **/
-void
-midori_location_action_set_uri (MidoriLocationAction* location_action,
-                                const gchar*          uri)
-{
-    g_return_if_fail (MIDORI_IS_LOCATION_ACTION (location_action));
-    g_return_if_fail (uri != NULL);
-
-    midori_location_action_set_text (location_action, uri);
-}
-
 /**
  * midori_location_action_set_icon:
  * @location_action: a #MidoriLocationAction
index 3decc5426175e6ba813925da8fc4becb2e606dbc..fd70e9cf995561fad17d69aa621ae64d7e5799c7 100644 (file)
@@ -36,12 +36,6 @@ typedef struct _MidoriLocationActionClass    MidoriLocationActionClass;
 GType
 midori_location_action_get_type             (void) G_GNUC_CONST;
 
-void
-midori_location_action_freeze              (MidoriLocationAction* location_action);
-
-void
-midori_location_action_thaw                (MidoriLocationAction* location_action);
-
 const gchar*
 midori_location_action_get_text             (MidoriLocationAction* location_action);
 
@@ -52,10 +46,6 @@ midori_location_action_set_text             (MidoriLocationAction* location_acti
 const gchar*
 midori_location_action_get_uri              (MidoriLocationAction* location_action);
 
-void
-midori_location_action_set_uri              (MidoriLocationAction* location_action,
-                                             const gchar*          uri);
-
 void
 midori_location_action_set_icon             (MidoriLocationAction* location_action,
                                              GdkPixbuf*            icon);