[almanah] Reduce usage of almanah_interface_embolden_label by using Pango attributes



commit 4d75b8f9807eb1e87eb17b6e9fa1565fc124b98a
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun May 10 19:10:41 2009 +0100

    Reduce usage of almanah_interface_embolden_label by using Pango attributes
---
 data/almanah.ui                 |   15 +++++++++++++++
 src/definition-manager-window.c |    4 ----
 src/main-window.c               |    4 ----
 src/search-dialog.c             |    3 ---
 4 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/data/almanah.ui b/data/almanah.ui
index 2ae546a..7729b6c 100644
--- a/data/almanah.ui
+++ b/data/almanah.ui
@@ -329,6 +329,9 @@
 										<accessibility>
 											<relation target="almanah_mw_calendar" type="label-for"/>
 										</accessibility>
+										<attributes>
+											<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+										</attributes>
 									</object>
 									<packing>
 										<property name="expand">False</property>
@@ -359,6 +362,9 @@
 										<accessibility>
 											<relation target="almanah_mw_events_tree_view" type="label-for"/>
 										</accessibility>
+										<attributes>
+											<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+										</attributes>
 									</object>
 									<packing>
 										<property name="expand">False</property>
@@ -593,6 +599,9 @@
 						<accessibility>
 							<relation target="almanah_sd_results_tree_view" type="label-for"/>
 						</accessibility>
+						<attributes>
+							<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+						</attributes>
 					</object>
 					<packing>
 						<property name="expand">False</property>
@@ -743,6 +752,9 @@
 								<accessibility>
 									<relation target="almanah_dmw_name_label" type="label-for"/>
 								</accessibility>
+								<attributes>
+									<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+								</attributes>
 							</object>
 							<packing>
 								<property name="left-attach">1</property>
@@ -777,6 +789,9 @@
 								<accessibility>
 									<relation target="almanah_dmw_description_label" type="label-for"/>
 								</accessibility>
+								<attributes>
+									<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+								</attributes>
 							</object>
 							<packing>
 								<property name="left-attach">1</property>
diff --git a/src/definition-manager-window.c b/src/definition-manager-window.c
index 821a046..d507a0c 100644
--- a/src/definition-manager-window.c
+++ b/src/definition-manager-window.c
@@ -159,10 +159,6 @@ almanah_definition_manager_window_new (void)
 	priv->view_button = GTK_BUTTON (gtk_builder_get_object (builder, "almanah_dmw_view_button"));
 	priv->remove_button = GTK_BUTTON (gtk_builder_get_object (builder, "almanah_dmw_remove_button"));
 
-	/* Prettify some labels */
-	almanah_interface_embolden_label (GTK_LABEL (gtk_builder_get_object (builder, "almanah_dmw_name_label_label")));
-	almanah_interface_embolden_label (GTK_LABEL (gtk_builder_get_object (builder, "almanah_dmw_description_label_label")));
-
 	/* Get notifications about added/modified/removed definitions from the storage manager */
 	g_signal_connect (almanah->storage_manager, "definition-added", G_CALLBACK (definition_added_cb), definition_manager_window);
 	g_signal_connect (almanah->storage_manager, "definition-modified", G_CALLBACK (definition_modified_cb), definition_manager_window);
diff --git a/src/main-window.c b/src/main-window.c
index 09bd645..3d63568 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -252,10 +252,6 @@ almanah_main_window_new (void)
 	g_signal_connect (priv->events_selection, "changed", G_CALLBACK (mw_events_selection_changed_cb), main_window);
 	gtk_tree_view_column_set_cell_data_func (priv->event_value_column, GTK_CELL_RENDERER (priv->event_value_renderer), mw_events_value_data_cb, NULL, NULL);
 
-	/* Prettify the UI */
-	almanah_interface_embolden_label (GTK_LABEL (gtk_builder_get_object (builder, "almanah_mw_calendar_label")));
-	almanah_interface_embolden_label (GTK_LABEL (gtk_builder_get_object (builder, "almanah_mw_events_label")));
-
 #ifndef ENABLE_ENCRYPTION
 #ifndef ENABLE_SPELL_CHECKING
 	/* Remove the "Preferences" entry from the menu */
diff --git a/src/search-dialog.c b/src/search-dialog.c
index f490e32..9c214a6 100644
--- a/src/search-dialog.c
+++ b/src/search-dialog.c
@@ -116,9 +116,6 @@ almanah_search_dialog_new (void)
 
 	gtk_widget_grab_default (GTK_WIDGET (gtk_builder_get_object (builder, "almanah_sd_search_button")));
 
-	/* Prettify the UI */
-	almanah_interface_embolden_label (GTK_LABEL (gtk_builder_get_object (builder, "almanah_sd_results_label")));
-
 	g_object_unref (builder);
 
 	return search_dialog;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]