diff options
author | Søren Sandmann <sandmann@redhat.com> | 2008-03-09 13:03:11 -0400 |
---|---|---|
committer | Søren Sandmann <sandmann@redhat.com> | 2008-03-09 13:03:11 -0400 |
commit | be2423531636f0c81cdd1aa909550f4c86568db0 (patch) | |
tree | b1d2def260e3102dc4cd2fafd432cafc6a34b452 /window.c | |
parent | dd4690df4173868a00f333cc662c85269f5276d2 (diff) |
Use close instead of quit
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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")); +} |