aboutsummaryrefslogtreecommitdiff
path: root/src/filesel.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-12 06:47:36 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-12 06:47:36 +0000
commit7a06ab831591b6cce9dda83e9343db373aad851e (patch)
tree10fe66618bf2b992b8c76461127eede444887fab /src/filesel.c
parent4e029c26ee4bca999bf39dda0b1b2d2bfe5101bc (diff)
updated po files.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@422 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/filesel.c')
-rw-r--r--src/filesel.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/filesel.c b/src/filesel.c
index e031f177..1921901f 100644
--- a/src/filesel.c
+++ b/src/filesel.c
@@ -29,6 +29,7 @@
#include "manage_window.h"
#include "alertpanel.h"
#include "utils.h"
+#include "prefs_common.h"
static GSList *filesel_select_file_full (const gchar *title,
const gchar *file,
@@ -155,12 +156,20 @@ static GtkWidget *filesel_create(const gchar *title,
{
GtkWidget *dialog;
- dialog = gtk_file_chooser_dialog_new
- (title, NULL, action,
- action == GTK_FILE_CHOOSER_ACTION_SAVE ? GTK_STOCK_SAVE
- : GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
- GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- NULL);
+ if (prefs_common.comply_gnome_hig)
+ dialog = gtk_file_chooser_dialog_new
+ (title, NULL, action,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ action == GTK_FILE_CHOOSER_ACTION_SAVE ? GTK_STOCK_SAVE
+ : GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+ NULL);
+ else
+ dialog = gtk_file_chooser_dialog_new
+ (title, NULL, action,
+ action == GTK_FILE_CHOOSER_ACTION_SAVE ? GTK_STOCK_SAVE
+ : GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ NULL);
gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
gtk_window_set_wmclass