Commit f6c376e6 authored by Paolo Borelli's avatar Paolo Borelli

s/panel/pane for real this time.

parent 97fb7ec5
2006-02-24 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-ui.h: s/Panel/Pane as per ui review.
* gedit/gedit-command-view.c: make naming consistent with the above.
* gedit/gedit-window.c: ditto.
2006-02-24 Paolo Borelli <pborelli@katamail.com>
......
......@@ -99,8 +99,8 @@ gedit_cmd_view_show_side_pane (GtkAction *action,
}
void
gedit_cmd_view_show_bottom_panel (GtkAction *action,
GeditWindow *window)
gedit_cmd_view_show_bottom_pane (GtkAction *action,
GeditWindow *window)
{
gboolean visible;
GeditPanel *panel;
......
......@@ -100,7 +100,7 @@ void gedit_cmd_view_show_statusbar (GtkAction *action,
GeditWindow *window);
void gedit_cmd_view_show_side_pane (GtkAction *action,
GeditWindow *window);
void gedit_cmd_view_show_bottom_panel (GtkAction *action,
void gedit_cmd_view_show_bottom_pane (GtkAction *action,
GeditWindow *window);
void gedit_cmd_search_find (GtkAction *action,
......
......@@ -146,17 +146,14 @@ static const GtkToggleActionEntry gedit_always_sensitive_toggle_menu_entries[] =
G_CALLBACK (gedit_cmd_view_show_statusbar), TRUE },
{ "ViewSidePane", NULL, N_("Side _Pane"), "F9",
N_("Show or hide the side pane in the current window"),
G_CALLBACK (gedit_cmd_view_show_side_pane), FALSE },
{ "ViewBottomPanel", NULL, N_("_Bottom Pane"), "<control>F9",
N_("Show or hide the bottom pane in the current window"),
G_CALLBACK (gedit_cmd_view_show_bottom_panel), FALSE }
G_CALLBACK (gedit_cmd_view_show_side_pane), FALSE }
};
static const GtkToggleActionEntry gedit_toggle_menu_entries[] =
{
{ "ViewBottomPanel", NULL, N_("_Bottom Panel"), "<control>F9",
N_("Show or hide the bottom panel in the current window"),
G_CALLBACK (gedit_cmd_view_show_bottom_panel), FALSE }
{ "ViewBottomPane", NULL, N_("_Bottom Pane"), "<control>F9",
N_("Show or hide the bottom pane in the current window"),
G_CALLBACK (gedit_cmd_view_show_bottom_pane), FALSE }
};
G_END_DECLS
......
......@@ -80,7 +80,7 @@
<menuitem name="ViewToolbarMenu" action="ViewToolbar"/>
<menuitem name="ViewStatusbarMenu" action="ViewStatusbar"/>
<menuitem name="ViewSidePaneMenu" action="ViewSidePane"/>
<menuitem name="ViewBottomPanelMenu" action="ViewBottomPanel"/>
<menuitem name="ViewBottomPaneMenu" action="ViewBottomPane"/>
<separator/>
<menu name="ViewHighlightModeMenu" action="ViewHighlightMode">
<placeholder name="LanguagesMenuPlaceholder">
......
......@@ -2570,7 +2570,7 @@ bottom_panel_visibility_changed (GeditPanel *bottom_panel,
gedit_prefs_manager_set_bottom_panel_visible (visible);
action = gtk_action_group_get_action (window->priv->action_group,
"ViewBottomPanel");
"ViewBottomPane");
if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)) != visible)
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), visible);
......@@ -2601,7 +2601,7 @@ bottom_panel_item_removed (GeditPanel *panel,
gtk_widget_hide (GTK_WIDGET (panel));
action = gtk_action_group_get_action (window->priv->action_group,
"ViewBottomPanel");
"ViewBottomPane");
gtk_action_set_sensitive (action, FALSE);
}
}
......@@ -2619,7 +2619,7 @@ bottom_panel_item_added (GeditPanel *panel,
gboolean show;
action = gtk_action_group_get_action (window->priv->action_group,
"ViewBottomPanel");
"ViewBottomPane");
gtk_action_set_sensitive (action, TRUE);
show = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
......@@ -2677,7 +2677,7 @@ init_panels_visibility (GeditWindow *window)
{
GtkAction *action;
action = gtk_action_group_get_action (window->priv->action_group,
"ViewBottomPanel");
"ViewBottomPane");
gtk_action_set_sensitive (action, FALSE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment