[nautilus-actions] Define a mnemonic for the actions list
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Define a mnemonic for the actions list
- Date: Thu, 30 Jul 2009 21:04:06 +0000 (UTC)
commit 48aea6d291f50645a514fea1a7c0354a1eaa88a1
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu Jul 30 18:21:32 2009 +0200
Define a mnemonic for the actions list
ChangeLog | 4 ++
src/nact/nact-iactions-list.c | 8 ++++-
src/nact/nautilus-actions-config-tool.ui | 49 ++++++++++++++++++++++--------
3 files changed, 46 insertions(+), 15 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e93625c..9ff4524 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,10 @@
* src/nact/nautilus-actions-config-tool.ui:
Add %p (port number) and %R (list of URIs) parameters.
+ * src/nact/nact-iactions-list.c:
+ * src/nact/nautilus-actions-config-tool.ui:
+ Define mnemonic for the actions list.
+
* src/nact/nautilus-actions-config-tool.ui:
Define mnemonic and tooltip for each tab of the notebook.
diff --git a/src/nact/nact-iactions-list.c b/src/nact/nact-iactions-list.c
index a639a9b..40131b2 100644
--- a/src/nact/nact-iactions-list.c
+++ b/src/nact/nact-iactions-list.c
@@ -162,11 +162,15 @@ nact_iactions_list_initial_load( NactWindow *window )
g_assert( NACT_IS_IACTIONS_LIST( window ));
g_assert( NACT_IS_WINDOW( window ));
+ GtkWidget *widget = get_actions_list_widget( window );
+
+ /* associates the ActionsList to the label */
+ GtkWidget *label = base_window_get_widget( BASE_WINDOW( window ), "ActionsListLabel" );
+ gtk_label_set_mnemonic_widget( GTK_LABEL( label ), widget );
+
nact_iactions_list_set_send_selection_changed_on_fill_list( window, FALSE );
nact_iactions_list_set_is_filling_list( window, FALSE );
- GtkWidget *widget = get_actions_list_widget( window );
-
/* create the model */
GtkTreeStore *ts_model = gtk_tree_store_new(
IACTIONS_LIST_N_COLUMN, GDK_TYPE_PIXBUF, G_TYPE_STRING, NA_OBJECT_TYPE );
diff --git a/src/nact/nautilus-actions-config-tool.ui b/src/nact/nautilus-actions-config-tool.ui
index b9c29ed..919a4f6 100644
--- a/src/nact/nautilus-actions-config-tool.ui
+++ b/src/nact/nautilus-actions-config-tool.ui
@@ -39,23 +39,46 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
- <object class="GtkScrolledWindow" id="scrolledwindow1">
+ <object class="GtkVBox" id="vbox2">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hscrollbar_policy">automatic</property>
- <property name="vscrollbar_policy">automatic</property>
- <property name="shadow_type">in</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkLabel" id="ActionsListLabel">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="xpad">4</property>
+ <property name="ypad">4</property>
+ <property name="label" translatable="yes">Actions _list :</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
<child>
- <object class="GtkTreeView" id="ActionsList">
+ <object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="headers_visible">False</property>
- <property name="rules_hint">True</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <object class="GtkTreeView" id="ActionsList">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="headers_visible">False</property>
+ <property name="rules_hint">True</property>
+ </object>
+ </child>
</object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
</child>
</object>
<packing>
- <property name="resize">True</property>
+ <property name="resize">False</property>
<property name="shrink">True</property>
</packing>
</child>
@@ -1431,16 +1454,16 @@ file(s)/folder(s)</property>
</object>
<object class="GtkSizeGroup" id="CommandLabelSizeGroup">
<widgets>
- <widget name="ProfileLabelLabel"/>
- <widget name="CommandPathLabel"/>
- <widget name="CommandParametersLabel"/>
<widget name="CommandExamplePreLabel"/>
+ <widget name="CommandParametersLabel"/>
+ <widget name="CommandPathLabel"/>
+ <widget name="ProfileLabelLabel"/>
</widgets>
</object>
<object class="GtkSizeGroup" id="CommandButtonSizeGroup">
<widgets>
- <widget name="CommandPathButton"/>
<widget name="CommandLegendButton"/>
+ <widget name="CommandPathButton"/>
</widgets>
</object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]