diff options
author | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-09-20 07:42:15 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-09-20 07:42:15 +0800 |
commit | d1c2b88f108a6f461383d6d8bf9bbe9a13bf64a4 (patch) | |
tree | 9de84f41cd409a49ef3a87ff5d5edd6bf3dabcc9 | |
parent | 54d2149bf268430f3b5f11e58c4492b1ab4c6ff5 (diff) | |
download | gsoc2013-epiphany-d1c2b88f108a6f461383d6d8bf9bbe9a13bf64a4.tar.gz gsoc2013-epiphany-d1c2b88f108a6f461383d6d8bf9bbe9a13bf64a4.tar.zst gsoc2013-epiphany-d1c2b88f108a6f461383d6d8bf9bbe9a13bf64a4.zip |
*** empty log message ***
-rw-r--r-- | ChangeLog | 8 | ||||
-rwxr-xr-x | lib/egg/egg-editable-toolbar.c | 4 |
2 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,11 @@ +2003-09-20 Marco Pesenti Gritti <marco@gnome.org> + + * lib/egg/egg-editable-toolbar.c: (drag_data_get_cb), + (create_item): + + Do not set item sensitive when not in edit mode. + s/egg-action/gtk-action, fix dnd. + 2003-09-19 Christian Persch <chpe@cvs.gnome.org> * idl/EphyAutomation.idl: diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c index d69088200..d76ca6f60 100755 --- a/lib/egg/egg-editable-toolbar.c +++ b/lib/egg/egg-editable-toolbar.c @@ -235,7 +235,7 @@ drag_data_get_cb (GtkWidget *widget, g_return_if_fail (IS_EGG_EDITABLE_TOOLBAR (etoolbar)); - action = GTK_ACTION (g_object_get_data (G_OBJECT (widget), "egg-action")); + action = GTK_ACTION (g_object_get_data (G_OBJECT (widget), "gtk-action")); if (action) { @@ -381,7 +381,6 @@ create_item (EggEditableToolbar *t, 0, action_name); action = find_action (t, action_name); item = gtk_action_create_tool_item (action); - gtk_widget_set_sensitive (item, TRUE); } gtk_widget_show (item); @@ -392,6 +391,7 @@ create_item (EggEditableToolbar *t, if (t->priv->edit_mode) { + gtk_widget_set_sensitive (item, TRUE); set_item_drag_source (item, action, is_separator); gtk_tool_item_set_use_drag_window (GTK_TOOL_ITEM (item), TRUE); } |