empathy r1823 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1823 - trunk/libempathy-gtk
- Date: Fri, 21 Nov 2008 16:19:15 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:19:15 2008
New Revision: 1823
URL: http://svn.gnome.org/viewvc/empathy?rev=1823&view=rev
Log:
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>
Modified:
trunk/libempathy-gtk/empathy-ft-manager.c
Modified: trunk/libempathy-gtk/empathy-ft-manager.c
==============================================================================
--- trunk/libempathy-gtk/empathy-ft-manager.c (original)
+++ trunk/libempathy-gtk/empathy-ft-manager.c Fri Nov 21 16:19:15 2008
@@ -823,14 +823,12 @@
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 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]