[gnome-flashback/wip/segeiger/gnome-3-18-inputmethods: 4/7] input-sources: add style classes to GfCandidateBox



commit 39d1863b6083a32794d593bbb247a69d3aadd3a3
Author: Sebastian Geiger <sbastig gmx net>
Date:   Sun Jan 17 22:57:24 2016 +0100

    input-sources: add style classes to GfCandidateBox

 .../libinput-sources/gf-candidate-box.c            |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-candidate-box.c 
b/gnome-flashback/libinput-sources/gf-candidate-box.c
index 03dac69..fa8c471 100644
--- a/gnome-flashback/libinput-sources/gf-candidate-box.c
+++ b/gnome-flashback/libinput-sources/gf-candidate-box.c
@@ -107,12 +107,18 @@ static void
 gf_candidate_box_init (GfCandidateBox *candidate_box)
 {
   GtkWidget *box;
+  GtkStyleContext *context;
 
   box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
   gtk_container_add (GTK_CONTAINER (candidate_box), box);
 
   candidate_box->index_label = gtk_label_new (NULL);
+  context = gtk_widget_get_style_context (candidate_box->index_label);
+  gtk_style_context_add_class (context, "index-label");
+
   candidate_box->candidate_label = gtk_label_new (NULL);
+  context = gtk_widget_get_style_context (candidate_box->candidate_label);
+  gtk_style_context_add_class (context, "candidate-label");
 
   gtk_container_add (GTK_CONTAINER (box), candidate_box->index_label);
   gtk_container_add (GTK_CONTAINER (box), candidate_box->candidate_label);


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