[gnome-control-center] shell: Make search result descriptions dimmer
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Make search result descriptions dimmer
- Date: Fri, 11 Jan 2013 15:23:18 +0000 (UTC)
commit ac4cefcd8b3159a7c81ccf0d77fc7660f8c6e789
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 11 16:21:26 2013 +0100
shell: Make search result descriptions dimmer
Using the dim-label class and libgd's styled text renderer
https://bugzilla.gnome.org/show_bug.cgi?id=676576
shell/Makefile.am | 4 +++-
shell/gnome-control-center.c | 5 ++++-
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 844c417..76166ee 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -1,7 +1,8 @@
INCLUDES = \
-I$(top_srcdir) \
$(SHELL_CFLAGS) \
- $(CHEESE_CFLAGS)
+ $(CHEESE_CFLAGS) \
+ -I$(top_srcdir)/libgd
bin_PROGRAMS = gnome-control-center
@@ -37,6 +38,7 @@ gnome_control_center_LDFLAGS = -export-dynamic
gnome_control_center_LDADD = \
$(SHELL_LIBS) \
$(CHEESE_LIBS) \
+ $(top_builddir)/libgd/libgd.la \
$(top_builddir)/panels/background/libbackground.la \
$(top_builddir)/panels/color/libcolor.la \
$(top_builddir)/panels/datetime/libdate_time.la \
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index de2f9be..a8f4156 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -29,6 +29,8 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <string.h>
+#include <libgd/gd-styled-text-renderer.h>
+
#ifdef HAVE_CHEESE
#include <clutter-gtk/clutter-gtk.h>
#endif /* HAVE_CHEESE */
@@ -685,7 +687,8 @@ setup_search (GnomeControlCenter *shell)
gtk_tree_view_column_set_expand (column, FALSE);
gtk_tree_view_append_column (GTK_TREE_VIEW (priv->search_view), column);
- renderer = gtk_cell_renderer_text_new ();
+ renderer = gd_styled_text_renderer_new ();
+ gd_styled_text_renderer_add_class (GD_STYLED_TEXT_RENDERER (renderer), "dim-label");
g_object_set (renderer,
"xpad", 15,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]