[gucharmap] Use the window resize grip on gtk3
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gucharmap] Use the window resize grip on gtk3
- Date: Fri, 8 Oct 2010 16:22:21 +0000 (UTC)
commit e6ac522af9b32255d3f7b8578a55af350e2d80bd
Author: Christian Persch <chpe gnome org>
Date: Fri Oct 8 18:21:41 2010 +0200
Use the window resize grip on gtk3
gucharmap/gucharmap-window.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gucharmap/gucharmap-window.c b/gucharmap/gucharmap-window.c
index 92efe53..5b83ff3 100644
--- a/gucharmap/gucharmap-window.c
+++ b/gucharmap/gucharmap-window.c
@@ -985,7 +985,9 @@ gucharmap_window_init (GucharmapWindow *guw)
gtk_box_pack_start (GTK_BOX (big_vbox), hbox, FALSE, FALSE, 0);
guw->status = gtk_statusbar_new ();
+#if !GTK_CHECK_VERSION (2, 91, 1)
gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (guw->status), FALSE);
+#endif
gtk_box_pack_start (GTK_BOX (hbox), guw->status, TRUE, TRUE, 0);
gtk_widget_show (guw->status);
g_signal_connect (guw->status, "realize", G_CALLBACK (status_realize), guw);
@@ -1014,6 +1016,10 @@ gucharmap_window_init (GucharmapWindow *guw)
gucharmap_settings_get_last_char ());
gtk_widget_grab_focus (GTK_WIDGET (gucharmap_charmap_get_chartable (guw->charmap)));
+
+#if GTK_CHECK_VERSION (2, 91, 1)
+ gtk_window_set_has_resize_grip (GTK_WINDOW (guw), TRUE);
+#endif
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]