GImageView is a GTK+ based image viewer which supports tabbed browsing, thumbnail table views, directory tree views and drag and drop. It also support movies using the Xine library and MPlayer, and supports images in compressed archive formats.
Revision | 6b607d21b5d0579bacf5a1f530822c027e7af32b (tree) |
---|---|
Zeit | 2009-01-07 18:08:59 |
Autor | makeinu <makeinu@aeae...> |
Commiter | makeinu |
Fix a bug that the cancel button on the file selection dialog is removed when an user press it.
git-svn-id: https://gtkmmviewer.svn.sourceforge.net/svnroot/gtkmmviewer/gimageview/trunk@1199 aeae0eed-423c-0410-9251-95fb8af3d19f
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2008-01-07 Takuro Ashie <ashie@homa.ne.jp> |
2 | 2 | |
3 | + * src/fileload.c: Fix a bug that the cancel button on the file selection | |
4 | + dialog is removed when an user press it. | |
5 | + | |
6 | +2008-01-07 Takuro Ashie <ashie@homa.ne.jp> | |
7 | + | |
3 | 8 | * src/gimv_image_win.c, src/gimv_thumb_win.c: Use GTK's stock items |
4 | 9 | for toolbar buttons. |
5 | 10 |
@@ -949,13 +949,13 @@ cb_filebrowser_close (GtkWidget *widget, gpointer parent) | ||
949 | 949 | } |
950 | 950 | |
951 | 951 | |
952 | -/* | |
953 | - * create_filebrowser: | |
954 | - * @ File open dialog (extend Gtk+'s original file open dialog widget) | |
955 | - * | |
956 | - * parent : Pointer to parent window. | |
957 | - * Return : Pointer to new filebrowser. | |
958 | - */ | |
952 | +static void | |
953 | +cb_cancel_button_clicked(GtkWidget *widget, gpointer data) | |
954 | +{ | |
955 | + gtk_widget_destroy(GTK_WIDGET(data)); | |
956 | +} | |
957 | + | |
958 | + | |
959 | 959 | GtkWidget * |
960 | 960 | create_filebrowser (gpointer parent) |
961 | 961 | { |
@@ -989,7 +989,7 @@ create_filebrowser (gpointer parent) | ||
989 | 989 | G_CALLBACK(cb_filebrowser_ok_sel), |
990 | 990 | filesel); |
991 | 991 | g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(filebrowser)->cancel_button), |
992 | - "clicked", G_CALLBACK(gtk_widget_destroy), | |
992 | + "clicked", G_CALLBACK(cb_cancel_button_clicked), | |
993 | 993 | filebrowser); |
994 | 994 | |
995 | 995 | bbox = gtk_hbutton_box_new(); |