• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

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.


Commit MetaInfo

Revision6b607d21b5d0579bacf5a1f530822c027e7af32b (tree)
Zeit2009-01-07 18:08:59
Autormakeinu <makeinu@aeae...>
Commitermakeinu

Log Message

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

Ändern Zusammenfassung

Diff

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
11 2008-01-07 Takuro Ashie <ashie@homa.ne.jp>
22
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+
38 * src/gimv_image_win.c, src/gimv_thumb_win.c: Use GTK's stock items
49 for toolbar buttons.
510
--- a/src/fileload.c
+++ b/src/fileload.c
@@ -949,13 +949,13 @@ cb_filebrowser_close (GtkWidget *widget, gpointer parent)
949949 }
950950
951951
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+
959959 GtkWidget *
960960 create_filebrowser (gpointer parent)
961961 {
@@ -989,7 +989,7 @@ create_filebrowser (gpointer parent)
989989 G_CALLBACK(cb_filebrowser_ok_sel),
990990 filesel);
991991 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),
993993 filebrowser);
994994
995995 bbox = gtk_hbutton_box_new();