Compare commits

...

3 Commits

Author SHA1 Message Date
Björn Daase
0c430d1e09 Merge branch 'fix/419/adjust_GtkFileChooserDialog' into 'master'
WIP: Unify GtkFileChooserDialogue

See merge request GNOME/glade!87
2023-09-21 23:52:45 +00:00
Daniel Mustieles
508379bd4a Updated Spanish translation 2023-09-21 11:30:44 +02:00
Björn Daase
19566cf3cf gtkDialog: always add Open/Save/Create/Select and Cancel button to GtkFileChooserDialog 2020-03-23 10:15:08 +01:00
2 changed files with 31 additions and 15 deletions

View File

@ -151,23 +151,39 @@ G_GNUC_END_IGNORE_DEPRECATIONS
if (size > -1)
glade_widget_property_set (glade_widget_get_from_gobject (child),
"size", size);
if (GTK_IS_FILE_CHOOSER_DIALOG (object)) {
GtkFileChooserAction action = gtk_file_chooser_get_action (GTK_FILE_CHOOSER (GTK_DIALOG (object)));
switch (action) {
case GTK_FILE_CHOOSER_ACTION_OPEN:
gtk_dialog_add_button (GTK_DIALOG (object), _("_Open"), GTK_RESPONSE_OK); break;
case GTK_FILE_CHOOSER_ACTION_SAVE:
gtk_dialog_add_button (GTK_DIALOG (object), _("_Save"), GTK_RESPONSE_OK); break;
case GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER:
gtk_dialog_add_button (GTK_DIALOG (object), _("_Select"), GTK_RESPONSE_OK); break;
case GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER:
gtk_dialog_add_button (GTK_DIALOG (object), _("_Create"), GTK_RESPONSE_OK); break;
}
gtk_dialog_add_button (GTK_DIALOG (object), _("_Cancel"), GTK_RESPONSE_CANCEL);
}
}
/* Only set these on the original create. */
if (reason == GLADE_CREATE_USER)
{
/* HIG compliant spacing defaults on dialogs */
/* HIG complient spacing defaults on dialogs */
glade_widget_property_set (vbox_widget, "spacing", 2);
if (GTK_IS_ABOUT_DIALOG (object) ||
GTK_IS_FILE_CHOOSER_DIALOG (object))
glade_widget_property_set (vbox_widget, "size", 3);
else
glade_widget_property_set (vbox_widget, "size", 2);
glade_widget_property_set (vbox_widget, "size", 2);
glade_widget_property_set (actionarea_widget, "size", 2);
glade_widget_property_set (actionarea_widget, "layout-style",
GTK_BUTTONBOX_END);
/* Do not use action areas for file choosers, they have their buttons in the header bar */
if (GTK_IS_FILE_CHOOSER_DIALOG (object)) {
glade_widget_property_set (actionarea_widget, "size", 0);
}
}
}

View File

@ -15,7 +15,7 @@ msgid ""
msgstr ""
"Project-Id-Version: glade3.master\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/glade/issues\n"
"POT-Creation-Date: 2023-04-09 05:51+0000\n"
"POT-Creation-Date: 2023-07-19 14:09+0000\n"
"PO-Revision-Date: 2023-07-19 16:06+0200\n"
"Last-Translator: Daniel Mustieles García <daniel.mustieles@gmail.com>\n"
"Language-Team: Spanish - Spain <gnome-es-list@gnome.org>\n"
@ -2392,7 +2392,7 @@ msgstr "Emblemas"
#: gladeui/icon-naming-spec.c:48
msgid "Emoticons"
msgstr "Emoticonos"
msgstr "Emojis"
#: gladeui/icon-naming-spec.c:50
msgid "International"
@ -5151,11 +5151,11 @@ msgstr "Escritura vertical"
#: plugins/gtk+/gtk+.xml:1464
msgid "Emoji Support"
msgstr "Soporte de emoticonos"
msgstr "Soporte de emojis"
#: plugins/gtk+/gtk+.xml:1466
msgid "No Emoji Support"
msgstr "No hay soporte de emoticonos"
msgstr "No hay soporte de emojis"
#: plugins/gtk+/gtk+.xml:1486
msgid "Primary Stock Icon"
@ -8197,8 +8197,8 @@ msgstr "Widgets de WebKit2GTK+"
#~ "\n"
#~ "To validate this email address open the following link\n"
#~ "\n"
#~ "https://people.gnome.org/~jpu/glade/registration.php?email="
#~ "$email&validation_token=$new_validation_token\n"
#~ "https://people.gnome.org/~jpu/glade/registration.php?"
#~ "email=$email&validation_token=$new_validation_token\n"
#~ "\n"
#~ "In case you want to change or update the survey, your current update "
#~ "token is:\n"
@ -8212,8 +8212,8 @@ msgstr "Widgets de WebKit2GTK+"
#~ "\n"
#~ "Para validar esta dirección de correo-e abra el siguiente enlace\n"
#~ "\n"
#~ "https://people.gnome.org/~jpu/glade/registration.php?email="
#~ "$email&validation_token=$new_validation_toke\n"
#~ "https://people.gnome.org/~jpu/glade/registration.php?"
#~ "email=$email&validation_token=$new_validation_toke\n"
#~ "\n"
#~ "En caso de que quiera cambiar o actualizar la encuesta, su testigo de "
#~ "actualización es:\n"