[gtk+] gtk3-demo: set primary-toolbar style class on primary toolbars
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk3-demo: set primary-toolbar style class on primary toolbars
- Date: Tue, 18 Feb 2014 04:57:58 +0000 (UTC)
commit 1b74e81470297d3ee4e45a9cebef4fd30e77d632
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 17 23:44:49 2014 -0500
gtk3-demo: set primary-toolbar style class on primary toolbars
This makes them draggable, and is the right thing to do.
demos/gtk-demo/builder.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/demos/gtk-demo/builder.c b/demos/gtk-demo/builder.c
index 254ecdc..c4f03fe 100644
--- a/demos/gtk-demo/builder.c
+++ b/demos/gtk-demo/builder.c
@@ -37,6 +37,7 @@ do_builder (GtkWidget *do_widget)
{
static GtkWidget *window = NULL;
GError *err = NULL;
+ GtkWidget *toolbar;
if (!window)
{
@@ -53,6 +54,9 @@ do_builder (GtkWidget *do_widget)
gtk_widget_get_screen (do_widget));
g_signal_connect (window, "destroy",
G_CALLBACK (gtk_widget_destroyed), &window);
+ toolbar = GTK_WIDGET (gtk_builder_get_object (builder, "toolbar1"));
+ gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
+ "primary-toolbar");
}
if (!gtk_widget_get_visible (window))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]