[gtk+] gtkimcontextime.c: Fix call to gtk_style_context_get()



commit 824837486bd65dde264001e9e6a5d07c6dbdb742
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Nov 17 15:30:20 2017 +0800

    gtkimcontextime.c: Fix call to gtk_style_context_get()
    
    The state argument was removed in commit 1518fe0 (API: stylecontext:
    Remove state argument from getters), but we missed updating this file
    until commit 5b94fe6 (stylecontext: Make first property name explicit),
    as the compiler did not issue any warnings on the (now-defunct) usage.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773299

 modules/input/gtkimcontextime.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/modules/input/gtkimcontextime.c b/modules/input/gtkimcontextime.c
index 704dc58..b11f601 100644
--- a/modules/input/gtkimcontextime.c
+++ b/modules/input/gtkimcontextime.c
@@ -955,7 +955,6 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context)
   gtk_style_context_save (style);
   gtk_style_context_set_state (style, GTK_STATE_FLAG_NORMAL);
   gtk_style_context_get (style,
-                         gtk_style_context_get_state (style),
                          "font",
                          &font_desc,
                          NULL);


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