aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/eggtoolbutton.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-04-07 04:07:14 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-07 04:07:14 +0800
commit30177ef207092d95ebbc2c835d52262618436c90 (patch)
tree0ec29d272a9850cdae573a9220eef6077af9facb /lib/egg/eggtoolbutton.c
parent856bc05445cae1c838b1e1cd7a30f3ebdbe52e01 (diff)
downloadgsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar
gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar.gz
gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar.bz2
gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar.lz
gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar.xz
gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.tar.zst
gsoc2013-epiphany-30177ef207092d95ebbc2c835d52262618436c90.zip
Add a separator item to the editor.
2003-04-06 Marco Pesenti Gritti <marco@it.gnome.org> * libegg/toolbareditor/egg-editable-toolbar.c: (get_dest_targets), (editor_create_item), (update_editor_sheet): Add a separator item to the editor.
Diffstat (limited to 'lib/egg/eggtoolbutton.c')
-rw-r--r--lib/egg/eggtoolbutton.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/egg/eggtoolbutton.c b/lib/egg/eggtoolbutton.c
index 4ff471729..7eb7523b9 100644
--- a/lib/egg/eggtoolbutton.c
+++ b/lib/egg/eggtoolbutton.c
@@ -180,7 +180,11 @@ egg_tool_button_init (EggToolButton *button, EggToolButtonClass *klass)
/* create button */
button->button = g_object_new (klass->button_type, NULL);
- GTK_WIDGET_UNSET_FLAGS (button->button, GTK_CAN_FOCUS);
+#if 0
+ /* FIXME: enable this when we can depend on gtk+ 2.3.0 */
+ gtk_button_set_focus_on_click (button->button, FALSE);
+#endif
+
g_signal_connect_object (button->button, "clicked",
G_CALLBACK (button_clicked), button, 0);
@@ -328,7 +332,7 @@ egg_tool_button_get_property (GObject *object,
break;
case PROP_USE_UNDERLINE:
g_value_set_boolean (value,
- gtk_label_get_use_underline (GTK_LABEL (button->label)));
+ gtk_label_get_use_underline (GTK_LABEL (button->label)));
break;
case PROP_STOCK_ID:
g_value_set_string (value, button->stock_id);
@@ -602,6 +606,8 @@ egg_tool_button_new_from_stock (const gchar *stock_id)
{
EggToolButton *button;
+ g_return_val_if_fail (stock_id != NULL, NULL);
+
button = g_object_new (EGG_TYPE_TOOL_BUTTON,
"stock_id", stock_id,
"use_underline", TRUE,