diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2008-11-22 00:19:15 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:19:15 +0800 |
commit | 01df94ac039ce1d9a6c4da5dee5703afd0a712fb (patch) | |
tree | 9add487db711cbf9b4f2820097963fc2195c78ce /libempathy-gtk/empathy-ft-manager.c | |
parent | c78ae5535221ebc44e522a3b9596257863f2fcde (diff) | |
download | gsoc2013-empathy-01df94ac039ce1d9a6c4da5dee5703afd0a712fb.tar gsoc2013-empathy-01df94ac039ce1d9a6c4da5dee5703afd0a712fb.tar.gz gsoc2013-empathy-01df94ac039ce1d9a6c4da5dee5703afd0a712fb.tar.bz2 gsoc2013-empathy-01df94ac039ce1d9a6c4da5dee5703afd0a712fb.tar.lz gsoc2013-empathy-01df94ac039ce1d9a6c4da5dee5703afd0a712fb.tar.xz gsoc2013-empathy-01df94ac039ce1d9a6c4da5dee5703afd0a712fb.tar.zst gsoc2013-empathy-01df94ac039ce1d9a6c4da5dee5703afd0a712fb.zip |
Made creating a save dialog a bit nicer by using proper GTK functions. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1823
Diffstat (limited to 'libempathy-gtk/empathy-ft-manager.c')
-rw-r--r-- | libempathy-gtk/empathy-ft-manager.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/libempathy-gtk/empathy-ft-manager.c b/libempathy-gtk/empathy-ft-manager.c index a882732ce..bbef49139 100644 --- a/libempathy-gtk/empathy-ft-manager.c +++ b/libempathy-gtk/empathy-ft-manager.c @@ -823,14 +823,12 @@ ft_manager_create_save_dialog (ReceiveResponseData *response_data) DEBUG ("Creating save file chooser"); - widget = g_object_new (GTK_TYPE_FILE_CHOOSER_DIALOG, - "action", GTK_FILE_CHOOSER_ACTION_SAVE, - "select-multiple", FALSE, - "do-overwrite-confirmation", TRUE, + widget = gtk_file_chooser_dialog_new (_("Save file as..."), + NULL, GTK_FILE_CHOOSER_ACTION_SAVE, + GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, + GTK_STOCK_SAVE_AS, GTK_RESPONSE_OK, NULL); - gtk_window_set_title (GTK_WINDOW (widget), _("Save file")); - if (!empathy_conf_get_string (empathy_conf_get (), EMPATHY_PREFS_FILE_TRANSFER_DEFAULT_FOLDER, &folder) || !folder) @@ -842,11 +840,6 @@ ft_manager_create_save_dialog (ReceiveResponseData *response_data) gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (widget), empathy_tp_file_get_filename (response_data->tp_file)); - gtk_dialog_add_buttons (GTK_DIALOG (widget), - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_SAVE, GTK_RESPONSE_OK, - NULL); - gtk_dialog_set_default_response (GTK_DIALOG (widget), GTK_RESPONSE_OK); |