[geany/geany] 2b6d59: Set a default widget name on all GtkBuilder widgets. (#2469)

Matthew Brush git-noreply at xxxxx
Fri Jun 5 23:38:02 UTC 2020


Branch:      refs/heads/master
Author:      Matthew Brush <matt at geany.org>
Committer:   GitHub <noreply at github.com>
Date:        Fri, 05 Jun 2020 23:38:02 UTC
Commit:      2b6d5956eb5b3f17a2f15889a8bea1271cedce1b
             https://github.com/geany/geany/commit/2b6d5956eb5b3f17a2f15889a8bea1271cedce1b

Log Message:
-----------
Set a default widget name on all GtkBuilder widgets. (#2469)

Allows selecting individual widgets in Gtk CSS using #name selector.


Modified Paths:
--------------
    src/ui_utils.c

Modified: src/ui_utils.c
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -2491,6 +2491,11 @@ void ui_init_builder(void)
 			g_warning("Unable to get name from GtkBuilder object");
 			continue;
 		}
+		else
+		{
+			/* Set a default name for use from CSS by name */
+			gtk_widget_set_name(widget, name);
+		}
 
 		toplevel = ui_get_top_parent(widget);
 		if (toplevel)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list