[gedit] open-selector: fix GtkStateFlags enums
- From: Sebastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] open-selector: fix GtkStateFlags enums
- Date: Thu, 15 Jan 2015 17:47:40 +0000 (UTC)
commit 60e51cc656ee2798e486f3bd7f3c62ad257cfa5e
Author: Sebastien Lafargue <slafargue gnome org>
Date: Thu Jan 15 18:45:41 2015 +0100
open-selector: fix GtkStateFlags enums
Use of GTK_STATE_FLAG_NORMAL instead of
the old GTK_STATE_NORMAL
gedit/gedit-open-document-selector.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-open-document-selector.c b/gedit/gedit-open-document-selector.c
index ae3e071..f1d8776 100644
--- a/gedit/gedit-open-document-selector.c
+++ b/gedit/gedit-open-document-selector.c
@@ -1004,7 +1004,7 @@ on_treeview_allocate (GtkWidget *widget,
NULL,
&path_renderer_natural_size);
- gtk_style_context_get_padding (context, GTK_STATE_NORMAL, &padding);
+ gtk_style_context_get_padding (context, GTK_STATE_FLAG_NORMAL, &padding);
gtk_cell_renderer_get_padding (priv->name_renderer, NULL, &ypad);
gtk_widget_style_get (priv->treeview, "grid-line-width", &grid_line_width, NULL);
@@ -1043,10 +1043,10 @@ name_renderer_datafunc (GtkTreeViewColumn *column,
/* Name label foreground and font size styling */
gtk_style_context_add_class (context, "open-document-selector-name-label");
- gtk_style_context_get_color (context, GTK_STATE_NORMAL, &label_color);
+ gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &label_color);
g_object_set (priv->name_renderer, "foreground-rgba", &label_color, NULL);
- gtk_style_context_get (context, GTK_STATE_NORMAL, "font-size", &font_size, NULL);
+ gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL, "font-size", &font_size, NULL);
g_object_set (priv->name_renderer, "size-points", font_size, NULL);
gtk_style_context_remove_class (context, "open-document-selector-name-label");
@@ -1069,10 +1069,10 @@ path_renderer_datafunc (GtkTreeViewColumn *column,
/* Path label foreground and font size styling */
gtk_style_context_add_class (context, "open-document-selector-path-label");
- gtk_style_context_get_color (context, GTK_STATE_NORMAL, &label_color);
+ gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &label_color);
g_object_set (priv->path_renderer, "foreground-rgba", &label_color, NULL);
- gtk_style_context_get (context, GTK_STATE_NORMAL, "font-size", &font_size, NULL);
+ gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL, "font-size", &font_size, NULL);
g_object_set (priv->path_renderer, "size-points", font_size, NULL);
gtk_style_context_remove_class (context, "open-document-selector-path-label");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]