diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2005-07-04 05:51:08 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-07-04 05:51:08 +0000 |
commit | 6eba56d74230698eacc0942f9375c04cf422b1fd (patch) | |
tree | e4c6f9747beab240ef76cf784f3d1e45bb2d8611 /demos | |
parent | 23c3d91c9f6a90738794095fc78ef0d560876599 (diff) | |
download | gtk+-6eba56d74230698eacc0942f9375c04cf422b1fd.tar.gz |
Make it compile
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/appwindow.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c index 7f2d7986a9..a15c9e519b 100644 --- a/demos/gtk-demo/appwindow.c +++ b/demos/gtk-demo/appwindow.c @@ -48,7 +48,8 @@ activate_radio_action (GtkAction *action, GtkRadioAction *current) GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, - "You activated radio action: \"%s\" of type \"%s\".\nCurrent value: %d", + "You activated radio action: \"%s\" of type \"%s\".\n" + "Current value: %d", name, typename, value); /* Close dialog on user response */ @@ -371,7 +372,9 @@ update_statusbar (GtkTextBuffer *buffer, gint count; GtkTextIter iter; - gtk_statusbar_pop (statusbar, 0); /* clear any previous message, underflow is allowed */ + gtk_statusbar_pop (statusbar, 0); /* clear any previous message, + * underflow is allowed + */ count = gtk_text_buffer_get_char_count (buffer); @@ -404,8 +407,15 @@ update_resize_grip (GtkWidget *widget, GdkEventWindowState *event, GtkStatusbar *statusbar) { - if (event->changed_mask & (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN)) - gtk_statusbar_set_has_resize_grip (statusbar, !(event->new_window_state & (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN))); + if (event->changed_mask & (GDK_WINDOW_STATE_MAXIMIZED | + GDK_WINDOW_STATE_FULLSCREEN)) + { + gboolean maximized; + + maximized = event->new_window_state & (GDK_WINDOW_STATE_MAXIMIZED | + GDK_WINDOW_STATE_FULLSCREEN); + gtk_statusbar_set_has_resize_grip (statusbar, !maximized); + } } @@ -474,7 +484,8 @@ do_appwindow (GtkWidget *do_widget) NULL); merge = gtk_ui_manager_new (); - g_object_set_data_full (G_OBJECT (window), "ui-manager", merge, g_object_unref); + g_object_set_data_full (G_OBJECT (window), "ui-manager", merge, + g_object_unref); gtk_ui_manager_insert_action_group (merge, action_group, 0); gtk_window_add_accel_group (GTK_WINDOW (window), gtk_ui_manager_get_accel_group (merge)); |