[gtk+] Remove uses of gtk_statusbar_set_has_resize_grip()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove uses of gtk_statusbar_set_has_resize_grip()
- Date: Fri, 8 Oct 2010 06:20:26 +0000 (UTC)
commit fe9a45c413ef7b4daf1801dfe9827971c851e3a7
Author: Cody Russell <bratsche gnome org>
Date: Thu Sep 30 13:15:23 2010 -0500
Remove uses of gtk_statusbar_set_has_resize_grip()
This function is going away.
demos/gtk-demo/appwindow.c | 23 -----------------------
docs/tools/widgets.c | 1 -
tests/print-editor.c | 24 +-----------------------
3 files changed, 1 insertions(+), 47 deletions(-)
---
diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c
index 6381458..b5003e5 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));
}
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index 1b1d824..45d678c 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -919,7 +919,6 @@ create_statusbar (void)
widget = gtk_statusbar_new ();
align = gtk_alignment_new (0.5, 1.0, 1.0, 0.0);
gtk_container_add (GTK_CONTAINER (align), widget);
- gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (widget), TRUE);
gtk_statusbar_push (GTK_STATUSBAR (widget), 0, "Hold on...");
gtk_box_pack_end (GTK_BOX (vbox), align, FALSE, FALSE, 0);
diff --git a/tests/print-editor.c b/tests/print-editor.c
index fe812ba..c4de8b7 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]