diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-21 22:04:48 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-21 22:04:48 +0800 |
commit | 75834982ca350dda7e1ad8b5aa3f2f39bd9cad5b (patch) | |
tree | aefcedd89ac97d1ef9dcccc0d855eec616cb4d18 | |
parent | fce5cd9176a15b7f42aa1707c2e2c25537d8fb1e (diff) | |
download | gsoc2013-epiphany-75834982ca350dda7e1ad8b5aa3f2f39bd9cad5b.tar gsoc2013-epiphany-75834982ca350dda7e1ad8b5aa3f2f39bd9cad5b.tar.gz gsoc2013-epiphany-75834982ca350dda7e1ad8b5aa3f2f39bd9cad5b.tar.bz2 gsoc2013-epiphany-75834982ca350dda7e1ad8b5aa3f2f39bd9cad5b.tar.lz gsoc2013-epiphany-75834982ca350dda7e1ad8b5aa3f2f39bd9cad5b.tar.xz gsoc2013-epiphany-75834982ca350dda7e1ad8b5aa3f2f39bd9cad5b.tar.zst gsoc2013-epiphany-75834982ca350dda7e1ad8b5aa3f2f39bd9cad5b.zip |
Set "tooltip" property on bookmark actions to the url. That way we display
2004-01-21 Christian Persch <chpe@cvs.gnome.org>
* src/bookmarks/ephy-bookmark-action.c:
(ephy_bookmark_action_get_type),
(ephy_bookmark_action_set_property),
(ephy_bookmark_action_get_property),
(ephy_bookmark_action_class_init):
Set "tooltip" property on bookmark actions to the url. That way
we display it in the status bar with no extra steps taken.
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmark-action.c | 27 |
2 files changed, 34 insertions, 4 deletions
@@ -1,3 +1,14 @@ +2004-01-21 Christian Persch <chpe@cvs.gnome.org> + + * src/bookmarks/ephy-bookmark-action.c: + (ephy_bookmark_action_get_type), + (ephy_bookmark_action_set_property), + (ephy_bookmark_action_get_property), + (ephy_bookmark_action_class_init): + + Set "tooltip" property on bookmark actions to the url. That way + we display it in the status bar with no extra steps taken. + 2004-01-21 Piers Cornwell <piers@myrealbox.com> * embed/downloader-view.c: (update_status_icon), diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c index b2e17dcb8..d3929b00b 100644 --- a/src/bookmarks/ephy-bookmark-action.c +++ b/src/bookmarks/ephy-bookmark-action.c @@ -17,7 +17,7 @@ */ #ifdef HAVE_CONFIG_H -#include <config.h> +#include "config.h" #endif #include <glib/gi18n.h> @@ -31,7 +31,7 @@ #include "ephy-string.h" #include "ephy-debug.h" -#define MAX_LABEL_LENGTH 30 +#define MAX_LABEL_LENGTH 32 static void ephy_bookmark_action_init (EphyBookmarkAction *action); static void ephy_bookmark_action_class_init (EphyBookmarkActionClass *class); @@ -50,6 +50,7 @@ enum { PROP_0, PROP_BOOKMARK_ID, + PROP_TOOLTIP, PROP_LOCATION, PROP_SMART_URL, PROP_ICON @@ -70,7 +71,7 @@ ephy_bookmark_action_get_type (void) { static GType type = 0; - if (!type) + if (type == 0) { static const GTypeInfo type_info = { @@ -372,6 +373,7 @@ ephy_bookmark_action_set_property (GObject *object, case PROP_BOOKMARK_ID: bmk->priv->bookmark_id = g_value_get_int (value); break; + case PROP_TOOLTIP: case PROP_LOCATION: g_free (bmk->priv->location); bmk->priv->location = g_strdup (g_value_get_string (value)); @@ -382,7 +384,7 @@ ephy_bookmark_action_set_property (GObject *object, break; case PROP_ICON: g_free (bmk->priv->icon); - bmk->priv->icon = g_strdup (g_value_get_string (value)); + bmk->priv->icon = g_value_dup_string (value); g_object_notify (object, "icon"); break; } @@ -403,6 +405,16 @@ ephy_bookmark_action_get_property (GObject *object, case PROP_BOOKMARK_ID: g_value_set_boolean (value, bmk->priv->bookmark_id); break; + case PROP_TOOLTIP: + case PROP_LOCATION: + g_value_set_string (value, bmk->priv->location); + break; + case PROP_SMART_URL: + g_value_set_boolean (value, bmk->priv->smart_url); + break; + case PROP_ICON: + g_value_set_string (value, bmk->priv->icon); + break; } } @@ -458,6 +470,13 @@ ephy_bookmark_action_class_init (EphyBookmarkActionClass *class) G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_LOCATION, + g_param_spec_string ("tooltip", + "Tooltip", + "Tooltip", + NULL, + G_PARAM_READWRITE)); + g_object_class_install_property (object_class, + PROP_LOCATION, g_param_spec_string ("location", "Location", "Location", |