forked from AuroraMiddleware/gtk
Remove uses of gtk_statusbar_set_has_resize_grip()
This function is going away.
This commit is contained in:
parent
f9265ea3b8
commit
fe9a45c413
@ -384,23 +384,6 @@ mark_set_callback (GtkTextBuffer *buffer,
|
|||||||
update_statusbar (buffer, GTK_STATUSBAR (data));
|
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 *
|
GtkWidget *
|
||||||
do_appwindow (GtkWidget *do_widget)
|
do_appwindow (GtkWidget *do_widget)
|
||||||
{
|
{
|
||||||
@ -569,12 +552,6 @@ do_appwindow (GtkWidget *do_widget)
|
|||||||
statusbar,
|
statusbar,
|
||||||
0);
|
0);
|
||||||
|
|
||||||
g_signal_connect_object (window,
|
|
||||||
"window_state_event",
|
|
||||||
G_CALLBACK (update_resize_grip),
|
|
||||||
statusbar,
|
|
||||||
0);
|
|
||||||
|
|
||||||
update_statusbar (buffer, GTK_STATUSBAR (statusbar));
|
update_statusbar (buffer, GTK_STATUSBAR (statusbar));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -919,7 +919,6 @@ create_statusbar (void)
|
|||||||
widget = gtk_statusbar_new ();
|
widget = gtk_statusbar_new ();
|
||||||
align = gtk_alignment_new (0.5, 1.0, 1.0, 0.0);
|
align = gtk_alignment_new (0.5, 1.0, 1.0, 0.0);
|
||||||
gtk_container_add (GTK_CONTAINER (align), widget);
|
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_statusbar_push (GTK_STATUSBAR (widget), 0, "Hold on...");
|
||||||
|
|
||||||
gtk_box_pack_end (GTK_BOX (vbox), align, FALSE, FALSE, 0);
|
gtk_box_pack_end (GTK_BOX (vbox), align, FALSE, FALSE, 0);
|
||||||
|
@ -820,22 +820,6 @@ mark_set_callback (GtkTextBuffer *buffer,
|
|||||||
update_statusbar ();
|
update_statusbar ();
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
static void
|
||||||
create_window (void)
|
create_window (void)
|
||||||
{
|
{
|
||||||
@ -935,13 +919,7 @@ create_window (void)
|
|||||||
G_CALLBACK (mark_set_callback),
|
G_CALLBACK (mark_set_callback),
|
||||||
NULL,
|
NULL,
|
||||||
0);
|
0);
|
||||||
|
|
||||||
g_signal_connect_object (main_window,
|
|
||||||
"window_state_event",
|
|
||||||
G_CALLBACK (update_resize_grip),
|
|
||||||
statusbar,
|
|
||||||
0);
|
|
||||||
|
|
||||||
update_ui ();
|
update_ui ();
|
||||||
|
|
||||||
gtk_widget_show_all (main_window);
|
gtk_widget_show_all (main_window);
|
||||||
|
Loading…
Reference in New Issue
Block a user