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);
}
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)));
{
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);
{
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);
}
}
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);
}
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)
{
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
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);
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);