[gnumeric] GUI: move action listing to when more actions are defined.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: move action listing to when more actions are defined.
- Date: Wed, 1 Feb 2012 21:04:08 +0000 (UTC)
commit 9209576baf325d97459541f6ce813e003bc39868
Author: Morten Welinder <terra gnome org>
Date: Wed Feb 1 16:03:50 2012 -0500
GUI: move action listing to when more actions are defined.
src/wbc-gtk-actions.c | 28 ----------------------------
src/wbc-gtk.c | 26 ++++++++++++++++++++++++++
2 files changed, 26 insertions(+), 28 deletions(-)
---
diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c
index 6db2b45..c4bc9f9 100644
--- a/src/wbc-gtk-actions.c
+++ b/src/wbc-gtk-actions.c
@@ -65,7 +65,6 @@
#include "print.h"
#include "print-info.h"
#include "gnm-pane-impl.h"
-#include "gutils.h"
#include <goffice/goffice.h>
#include <goffice/component/goffice-component.h>
@@ -3002,21 +3001,6 @@ wbc_gtk_init_alignments (WBCGtk *wbcg)
gtk_action_group_add_action (wbcg->actions, GTK_ACTION (wbcg->valignment));
}
-static void
-list_actions (GtkActionGroup *group)
-{
- GList *actions = gtk_action_group_list_actions (group);
- GList *l;
-
- for (l = actions; l; l = l->next) {
- GtkAction *act = l->data;
- const char *name = gtk_action_get_name (act);
- g_printerr ("Action %s\n", name);
- }
-
- g_list_free (actions);
-}
-
/****************************************************************************/
void
@@ -3049,16 +3033,4 @@ wbc_gtk_init_actions (WBCGtk *wbcg)
semi_permanent_toggle_actions, G_N_ELEMENTS (semi_permanent_toggle_actions), wbcg);
wbc_gtk_init_alignments (wbcg);
-
- if (gnm_debug_flag ("actions")) {
- list_actions (wbcg->permanent_actions);
- list_actions (wbcg->actions);
- list_actions (wbcg->font_actions);
- list_actions (wbcg->data_only_actions);
- list_actions (wbcg->semi_permanent_actions);
- list_actions (wbcg->file_history.actions);
- list_actions (wbcg->toolbar.actions);
- list_actions (wbcg->windows.actions);
- list_actions (wbcg->templates.actions);
- }
}
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index b84410f..dc80193 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -5583,6 +5583,21 @@ wbc_gtk_class_init (GObjectClass *gobject_class)
}
static void
+list_actions (GtkActionGroup *group)
+{
+ GList *actions = gtk_action_group_list_actions (group);
+ GList *l;
+
+ for (l = actions; l; l = l->next) {
+ GtkAction *act = l->data;
+ const char *name = gtk_action_get_name (act);
+ g_printerr ("Action %s\n", name);
+ }
+
+ g_list_free (actions);
+}
+
+static void
wbc_gtk_init (GObject *obj)
{
static struct {
@@ -5747,6 +5762,17 @@ wbc_gtk_init (GObject *obj)
wbc_gtk_set_action_sensitivity (wbcg, "ToolsSolver", FALSE);
#endif
+ if (gnm_debug_flag ("actions")) {
+ list_actions (wbcg->permanent_actions);
+ list_actions (wbcg->actions);
+ list_actions (wbcg->font_actions);
+ list_actions (wbcg->data_only_actions);
+ list_actions (wbcg->semi_permanent_actions);
+ list_actions (wbcg->file_history.actions);
+ list_actions (wbcg->toolbar.actions);
+ list_actions (wbcg->windows.actions);
+ list_actions (wbcg->templates.actions);
+ }
}
GSF_CLASS_FULL (WBCGtk, wbc_gtk, NULL, NULL, wbc_gtk_class_init, NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]