[gthumb/ext] always set the weight property for the tree items
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] always set the weight property for the tree items
- Date: Fri, 30 Oct 2009 19:04:49 +0000 (UTC)
commit def14e4f256649e80f254bc42ec9a92b9323182d
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Oct 30 20:04:12 2009 +0100
always set the weight property for the tree items
gthumb/gth-file-properties.c | 1 +
gthumb/gth-folder-tree.c | 8 ++++++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-file-properties.c b/gthumb/gth-file-properties.c
index 5ad6a78..b8f275e 100644
--- a/gthumb/gth-file-properties.c
+++ b/gthumb/gth-file-properties.c
@@ -152,6 +152,7 @@ gth_file_properties_real_set_file (GthPropertyView *self,
gtk_list_store_append (file_properties->priv->tree_model, &iter);
gtk_list_store_set (file_properties->priv->tree_model,
&iter,
+ WEIGHT_COLUMN, PANGO_WEIGHT_NORMAL,
ID_COLUMN, info->id,
DISPLAY_NAME_COLUMN, info->display_name,
VALUE_COLUMN, value,
diff --git a/gthumb/gth-folder-tree.c b/gthumb/gth-folder-tree.c
index 3568663..ce609c0 100644
--- a/gthumb/gth-folder-tree.c
+++ b/gthumb/gth-folder-tree.c
@@ -827,6 +827,10 @@ _gth_folder_tree_add_file (GthFolderTree *folder_tree,
gtk_tree_store_set (folder_tree->priv->tree_store, &iter,
COLUMN_WEIGHT, PANGO_WEIGHT_BOLD,
-1);
+ else
+ gtk_tree_store_set (folder_tree->priv->tree_store, &iter,
+ COLUMN_WEIGHT, PANGO_WEIGHT_NORMAL,
+ -1);
if (! _gth_folder_tree_iter_has_no_child (folder_tree, &iter))
_gth_folder_tree_add_loading_item (folder_tree, &iter);
@@ -987,10 +991,10 @@ gth_folder_tree_set_list (GthFolderTree *folder_tree,
}
-/* After changing the children list, the node expander is not hilighted
+/* After changing the children list, the node expander is not highlighted
* anymore, this prevents the user to close the expander without moving the
* mouse pointer. The problem can be fixed emitting a fake motion notify
- * event, this way the expander gets hilighted again and a click on the
+ * event, this way the expander gets highlighted again and a click on the
* expander will correctly collapse the node. */
static void
emit_fake_motion_notify_event (GthFolderTree *folder_tree)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]