summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2008-03-09 13:03:11 -0400
committerSøren Sandmann <sandmann@redhat.com>2008-03-09 13:03:11 -0400
commitbe2423531636f0c81cdd1aa909550f4c86568db0 (patch)
treeb1d2def260e3102dc4cd2fafd432cafc6a34b452 /window.c
parentdd4690df4173868a00f333cc662c85269f5276d2 (diff)
Use close instead of quit
Diffstat (limited to 'window.c')
-rw-r--r--window.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/window.c b/window.c
index ebed325..5792514 100644
--- a/window.c
+++ b/window.c
@@ -340,7 +340,7 @@ connect_signals (Window *window)
{ "menu_zoom_normal", "activate", G_CALLBACK (on_zoom_normal) },
{ "menu_rotate_left", "activate", G_CALLBACK (on_rotate_left) },
{ "menu_rotate_right", "activate", G_CALLBACK (on_rotate_right) },
- { "menu_quit", "activate", G_CALLBACK (gtk_main_quit) },
+ { "menu_close", "activate", G_CALLBACK (gtk_main_quit) },
{ "menu_smooth_image", "toggled", G_CALLBACK (on_various) },
{ "menu_white", "activate", G_CALLBACK (on_various) },
@@ -403,3 +403,9 @@ window_new ()
return window;
}
+
+void
+window_show (Window *window)
+{
+ gtk_widget_show (GET_WIDGET (window, "main_window"));
+}