[gtk: 1/3] appchooserbutton: Set a CSS name




commit 5f00675de44851c0b661d68d2e84bed604c4047b
Author: nana-4 <hnmaigo gmail com>
Date:   Sun Aug 2 18:26:40 2020 +0900

    appchooserbutton: Set a CSS name
    
    Otherwise it has a CSS name "widget".

 gtk/gtkappchooserbutton.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gtk/gtkappchooserbutton.c b/gtk/gtkappchooserbutton.c
index 518f2c64be..7e81e2c925 100644
--- a/gtk/gtkappchooserbutton.c
+++ b/gtk/gtkappchooserbutton.c
@@ -45,6 +45,10 @@
  *
  * To track changes in the selected application, use the
  * #GtkAppChooserButton::changed signal.
+ *
+ * # CSS nodes
+ *
+ * GtkAppChooserButton has a single CSS node with the name “appchooserbutton”.
  */
 #include "config.h"
 
@@ -741,6 +745,7 @@ gtk_app_chooser_button_class_init (GtkAppChooserButtonClass *klass)
                   1, G_TYPE_STRING);
 
 
+  gtk_widget_class_set_css_name (widget_class, I_("appchooserbutton"));
 }
 
 static void


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