[eog] Remove resize grip handling
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Remove resize grip handling
- Date: Sat, 9 Oct 2010 19:05:34 +0000 (UTC)
commit 10f17139ed47ebc194ece30e6632ba441463de75
Author: Felix Riemann <friemann gnome org>
Date: Sat Oct 9 20:56:46 2010 +0200
Remove resize grip handling
Latest GTK+ can handle this automatically for any window.
Raise GTK+ dependency version to catch the required GTK changes.
configure.ac | 2 +-
src/eog-statusbar.c | 12 ------------
src/eog-statusbar.h | 3 ---
src/eog-window.c | 25 -------------------------
4 files changed, 1 insertions(+), 41 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index dfc0164..b962705 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,7 +83,7 @@ GNOME_DOC_INIT
# GNOME Libs
# **********
-GTK_REQUIRED=2.90.8
+GTK_REQUIRED=2.91.1
GLIB_REQUIRED=2.25.9
GNOME_DESKTOP_REQUIRED=2.90.4
GDKPIXBUF_REQUIRED=2.4.0
diff --git a/src/eog-statusbar.c b/src/eog-statusbar.c
index 0561a66..7ee15e3 100644
--- a/src/eog-statusbar.c
+++ b/src/eog-statusbar.c
@@ -58,10 +58,7 @@ eog_statusbar_init (EogStatusbar *statusbar)
statusbar->priv = EOG_STATUSBAR_GET_PRIVATE (statusbar);
priv = statusbar->priv;
- gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (statusbar), TRUE);
-
priv->img_num_statusbar = gtk_statusbar_new ();
- gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (priv->img_num_statusbar), FALSE);
gtk_widget_set_size_request (priv->img_num_statusbar, 100, 10);
gtk_widget_show (priv->img_num_statusbar);
@@ -146,12 +143,3 @@ eog_statusbar_set_progress (EogStatusbar *statusbar,
gtk_widget_show (statusbar->priv->img_num_statusbar);
}
}
-
-void
-eog_statusbar_set_has_resize_grip (EogStatusbar *statusbar, gboolean has_resize_grip)
-{
- g_return_if_fail (EOG_IS_STATUSBAR (statusbar));
-
- gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (statusbar),
- has_resize_grip);
-}
diff --git a/src/eog-statusbar.h b/src/eog-statusbar.h
index 1fe1417..a1c426e 100644
--- a/src/eog-statusbar.h
+++ b/src/eog-statusbar.h
@@ -63,9 +63,6 @@ void eog_statusbar_set_image_number (EogStatusbar *statusbar,
void eog_statusbar_set_progress (EogStatusbar *statusbar,
gdouble progress);
-void eog_statusbar_set_has_resize_grip (EogStatusbar *statusbar,
- gboolean has_resize_grip);
-
G_END_DECLS
#endif /* __EOG_STATUSBAR_H__ */
diff --git a/src/eog-window.c b/src/eog-window.c
index d08f1cb..402f38e 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4858,30 +4858,6 @@ eog_window_configure_event (GtkWidget *widget, GdkEventConfigure *event)
return FALSE;
}
-static gboolean
-eog_window_window_state_event (GtkWidget *widget,
- GdkEventWindowState *event)
-{
- EogWindow *window;
-
- g_return_val_if_fail (EOG_IS_WINDOW (widget), TRUE);
-
- window = EOG_WINDOW (widget);
-
- if (event->changed_mask &
- (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN)) {
- gboolean show;
-
- show = !(event->new_window_state &
- (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN));
-
- eog_statusbar_set_has_resize_grip (EOG_STATUSBAR (window->priv->statusbar),
- show);
- }
-
- return FALSE;
-}
-
static void
eog_window_unrealize (GtkWidget *widget)
{
@@ -5010,7 +4986,6 @@ eog_window_class_init (EogWindowClass *class)
widget_class->button_press_event = eog_window_button_press;
widget_class->drag_data_received = eog_window_drag_data_received;
widget_class->configure_event = eog_window_configure_event;
- widget_class->window_state_event = eog_window_window_state_event;
widget_class->unrealize = eog_window_unrealize;
widget_class->focus_out_event = eog_window_focus_out_event;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]