summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCody Russell <bratsche@gnome.org>2010-09-30 13:15:23 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-10-08 02:14:19 -0400
commitfe9a45c413ef7b4daf1801dfe9827971c851e3a7 (patch)
tree722e35c8deb4389ca3e5c627b3a224694f1d3ab2 /tests
parentf9265ea3b8e1283f61e2d38db6d46879b8dc5ca2 (diff)
downloadgtk+-fe9a45c413ef7b4daf1801dfe9827971c851e3a7.tar.gz
Remove uses of gtk_statusbar_set_has_resize_grip()
This function is going away.
Diffstat (limited to 'tests')
-rw-r--r--tests/print-editor.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/tests/print-editor.c b/tests/print-editor.c
index fe812ba921..c4de8b7efa 100644
--- a/tests/print-editor.c
+++ b/tests/print-editor.c
@@ -821,22 +821,6 @@ mark_set_callback (GtkTextBuffer *buffer,
}
static void
-update_resize_grip (GtkWidget *widget,
- GdkEventWindowState *event,
- GtkStatusbar *statusbar)
-{
- 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);
- }
-}
-
-static void
create_window (void)
{
GtkWidget *bar;
@@ -935,13 +919,7 @@ create_window (void)
G_CALLBACK (mark_set_callback),
NULL,
0);
-
- g_signal_connect_object (main_window,
- "window_state_event",
- G_CALLBACK (update_resize_grip),
- statusbar,
- 0);
-
+
update_ui ();
gtk_widget_show_all (main_window);