Connect to the clicked signal instead, because we
don't want the icon, label etc. to assume that of
the action. Closes bug #25817
+ GtkWidget *toolbarbutton = get_widget_assert (de->builder, "button-open");
+
GtkAction *action_data_open =
GtkAction *action_data_open =
- resolve_action (de->builder, "file_open_data", "button-open");
+ resolve_action (de->builder, "file_open_data", NULL);
g_object_set (action_data_open,
"tooltip", _("Open a data file"),
g_object_set (action_data_open,
"tooltip", _("Open a data file"),
g_signal_connect (action_data_open, "activate",
G_CALLBACK (open_data_dialog), de);
g_signal_connect (action_data_open, "activate",
G_CALLBACK (open_data_dialog), de);
+
+ g_signal_connect_swapped (toolbarbutton, "clicked",
+ G_CALLBACK (gtk_action_activate), action_data_open);