summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/appwindow.c
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 /demos/gtk-demo/appwindow.c
parentf9265ea3b8e1283f61e2d38db6d46879b8dc5ca2 (diff)
downloadgtk+-fe9a45c413ef7b4daf1801dfe9827971c851e3a7.tar.gz
Remove uses of gtk_statusbar_set_has_resize_grip()
This function is going away.
Diffstat (limited to 'demos/gtk-demo/appwindow.c')
-rw-r--r--demos/gtk-demo/appwindow.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c
index 6381458801..b5003e567e 100644
--- a/demos/gtk-demo/appwindow.c
+++ b/demos/gtk-demo/appwindow.c
@@ -384,23 +384,6 @@ mark_set_callback (GtkTextBuffer *buffer,
update_statusbar (buffer, GTK_STATUSBAR (data));
}
-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);
- }
-}
-
-
GtkWidget *
do_appwindow (GtkWidget *do_widget)
{
@@ -569,12 +552,6 @@ do_appwindow (GtkWidget *do_widget)
statusbar,
0);
- g_signal_connect_object (window,
- "window_state_event",
- G_CALLBACK (update_resize_grip),
- statusbar,
- 0);
-
update_statusbar (buffer, GTK_STATUSBAR (statusbar));
}