[gnumeric] Hide misleading label
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Hide misleading label
- Date: Tue, 28 Jun 2011 21:18:20 +0000 (UTC)
commit dfab8a0d2c84c8f8573005217856bfd7a1b36810
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Tue Jun 28 15:16:55 2011 -0600
Hide misleading label
2011-06-28 Andreas J. Guelzow <aguelzow pyrshep ca>
* doc-meta-data.ui: name the instruction label
* dialog-doc-metadata.c (dialog_doc_metadata_init_widgets):
initialize instruction label
(cb_dialog_doc_metadata_tree_prop_selected): hide instruction label
(dialog_doc_metadata_init_properties_page): trigger selection change
src/dialogs/ChangeLog | 8 ++++++++
src/dialogs/dialog-doc-metadata.c | 7 +++++++
src/dialogs/doc-meta-data.ui | 4 ++--
3 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 5951c1e..314ca18 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,13 @@
2011-06-28 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * doc-meta-data.ui: name the instruction label
+ * dialog-doc-metadata.c (dialog_doc_metadata_init_widgets):
+ initialize instruction label
+ (cb_dialog_doc_metadata_tree_prop_selected): hide instruction label
+ (dialog_doc_metadata_init_properties_page): trigger selection change
+
+2011-06-28 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* doc-meta-data.ui: restructure properties tab
* dialog-doc-metadata.c (dialog_doc_metadata_add_prop): remove argument,
change all callers, del;ete reference to names combo
diff --git a/src/dialogs/dialog-doc-metadata.c b/src/dialogs/dialog-doc-metadata.c
index e528aa4..71379c3 100644
--- a/src/dialogs/dialog-doc-metadata.c
+++ b/src/dialogs/dialog-doc-metadata.c
@@ -120,6 +120,8 @@ typedef struct {
GtkButton *add_button;
GtkButton *remove_button;
+ GtkLabel *instruction;
+
/* Keyword Page */
GtkTreeView *key_tree_view;
GtkListStore *key_store;
@@ -1253,6 +1255,8 @@ cb_dialog_doc_metadata_tree_prop_selected (GtkTreeSelection *selection,
/* Set remove button sensitive */
gtk_widget_set_sensitive (GTK_WIDGET (state->remove_button),
gtk_tree_selection_get_selected (selection, NULL, NULL));
+
+ gtk_label_set_text (state->instruction, "");
}
/**
@@ -1404,6 +1408,8 @@ dialog_doc_metadata_init_properties_page (DialogDocMetaData *state)
"clicked",
G_CALLBACK (cb_dialog_doc_metadata_remove_clicked),
state);
+
+ cb_dialog_doc_metadata_tree_prop_selected (sel, state);
}
/******************************************************************************
@@ -1607,6 +1613,7 @@ dialog_doc_metadata_init_widgets (DialogDocMetaData *state)
state->add_button = GTK_BUTTON (go_gtk_builder_get_widget (state->gui, "add_button"));
state->remove_button = GTK_BUTTON (go_gtk_builder_get_widget (state->gui, "remove_button"));
+ state->instruction = GTK_LABEL (go_gtk_builder_get_widget (state->gui, "instruction-label"));
/* Keyword Page */
state->key_tree_view = GTK_TREE_VIEW (go_gtk_builder_get_widget (state->gui, "keyview"));
diff --git a/src/dialogs/doc-meta-data.ui b/src/dialogs/doc-meta-data.ui
index c7f1a09..ff8ee73 100644
--- a/src/dialogs/doc-meta-data.ui
+++ b/src/dialogs/doc-meta-data.ui
@@ -1143,10 +1143,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GtkLabel" id="label10">
+ <object class="GtkLabel" id="instruction-label">
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Edit items inside the above listing.</property>
+ <property name="label" translatable="yes">Edit item inside the above listing.</property>
</object>
<packing>
<property name="expand">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]