Skip to content

Commit

Permalink
Fix #508: Copy and Move windows scale incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
caclark committed Sep 6, 2017
1 parent 8702dec commit 6d3a295
Show file tree
Hide file tree
Showing 22 changed files with 54 additions and 43 deletions.
2 changes: 1 addition & 1 deletion src/bar_exif.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ static void bar_pane_exif_conf_dialog(GtkWidget *widget)
g_signal_connect(G_OBJECT(widget), "destroy",
G_CALLBACK(bar_pane_exif_edit_close_cb), gd);

generic_dialog_add_message(gd, NULL, ee ? _("Configure entry") : _("Add entry"), NULL);
generic_dialog_add_message(gd, NULL, ee ? _("Configure entry") : _("Add entry"), NULL, FALSE);

generic_dialog_add_button(gd, GTK_STOCK_OK, NULL,
bar_pane_exif_edit_ok_cb, TRUE);
Expand Down
4 changes: 2 additions & 2 deletions src/bar_gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static void bar_pane_gps_close_save_cb(GenericDialog *gd, gpointer data)
bar_pane_gps_close_cancel_cb, pgd);
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION,
_("Write lat/long to meta-data?"),
message->str);
message->str, TRUE);

generic_dialog_add_button(gd, GTK_STOCK_SAVE, NULL,
bar_pane_gps_close_save_cb, TRUE);
Expand Down Expand Up @@ -843,7 +843,7 @@ void bar_pane_gps_map_centreing(PaneGPSData *pgd)
gd = generic_dialog_new(_("Map centering"),
"map_centering", NULL, TRUE, NULL, pgd);
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_INFO,
"Map Centering", message->str);
"Map Centering", message->str, TRUE);
generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, NULL, TRUE);

gtk_widget_show(gd->dialog);
Expand Down
2 changes: 1 addition & 1 deletion src/bar_keywords.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ static void bar_pane_keywords_edit_dialog(PaneKeywordsData *pkd, gboolean edit_e
G_CALLBACK(bar_pane_keywords_edit_destroy_cb), cdd);


generic_dialog_add_message(gd, NULL, name ? _("Configure keyword") : _("New keyword"), NULL);
generic_dialog_add_message(gd, NULL, name ? _("Configure keyword") : _("New keyword"), NULL, FALSE);

generic_dialog_add_button(gd, GTK_STOCK_OK, NULL,
bar_pane_keywords_edit_ok_cb, TRUE);
Expand Down
2 changes: 1 addition & 1 deletion src/bar_sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ static void bar_sort_add_cb(GtkWidget *button, gpointer data)
bar_sort_add_cancel_cb, sd);
file_dialog_add_button(sd->dialog, GTK_STOCK_OK, NULL, bar_sort_add_ok_cb, TRUE);

generic_dialog_add_message(GENERIC_DIALOG(sd->dialog), NULL, title, NULL);
generic_dialog_add_message(GENERIC_DIALOG(sd->dialog), NULL, title, NULL, FALSE);

if (sd->mode == BAR_SORT_MODE_FOLDER)
{
Expand Down
10 changes: 5 additions & 5 deletions src/cache_maint.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void cache_maintain_home(gboolean metadata, gboolean clear, GtkWidget *parent)
cm->button_stop = generic_dialog_add_button(cm->gd, GTK_STOCK_STOP, NULL,
cache_maintain_home_stop_cb, FALSE);

generic_dialog_add_message(cm->gd, NULL, msg, NULL);
generic_dialog_add_message(cm->gd, NULL, msg, NULL, FALSE);
gtk_window_set_default_size(GTK_WINDOW(cm->gd->dialog), PURGE_DIALOG_WIDTH, -1);

hbox = gtk_hbox_new(FALSE, 0);
Expand Down Expand Up @@ -807,7 +807,7 @@ static void cache_manager_render_dialog(GtkWidget *widget, const gchar *path)
cache_manager_render_stop_cb, FALSE);
gtk_widget_set_sensitive(cd->button_stop, FALSE);

generic_dialog_add_message(cd->gd, NULL, _("Create thumbnails"), NULL);
generic_dialog_add_message(cd->gd, NULL, _("Create thumbnails"), NULL, FALSE);

hbox = pref_box_new(cd->gd->vbox, FALSE, GTK_ORIENTATION_HORIZONTAL, 0);
pref_spacer(hbox, PREF_PAD_INDENT);
Expand Down Expand Up @@ -1066,7 +1066,7 @@ static void cache_manager_standard_process(GtkWidget *widget, gboolean clear)
cache_manager_standard_clean_stop_cb, FALSE);
gtk_widget_set_sensitive(cd->button_stop, FALSE);

generic_dialog_add_message(cd->gd, stock_id, msg, NULL);
generic_dialog_add_message(cd->gd, stock_id, msg, NULL, FALSE);

cd->progress = gtk_progress_bar_new();
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(cd->progress), _("click start to begin"));
Expand Down Expand Up @@ -1132,7 +1132,7 @@ void cache_manager_main_clear_confirm(GtkWidget *parent)
"clear_cache", parent, TRUE,
dummy_cancel_cb, NULL);
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, _("Clear cache"),
_("This will remove all thumbnails that have\nbeen saved to disk, continue?"));
_("This will remove all thumbnails that have\nbeen saved to disk, continue?"), TRUE);
generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, cache_manager_main_clear_ok_cb, TRUE);

gtk_widget_show(gd->dialog);
Expand Down Expand Up @@ -1214,7 +1214,7 @@ void cache_manager_show(void)
generic_dialog_add_button(gd, GTK_STOCK_HELP, NULL,
cache_manager_help_cb, FALSE);

generic_dialog_add_message(gd, NULL, _("Cache and Data Maintenance"), NULL);
generic_dialog_add_message(gd, NULL, _("Cache and Data Maintenance"), NULL, FALSE);

sizegroup = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);

Expand Down
4 changes: 2 additions & 2 deletions src/collect-dlg.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static gboolean collection_save_confirmed(FileDialog *fd, gboolean overwrite, Co
collection_confirm_cancel_cb, fd);

generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION,
_("Overwrite existing file?"), fd->dest_path);
_("Overwrite existing file?"), fd->dest_path, TRUE);

generic_dialog_add_button(gd, GTK_STOCK_OK, _("_Overwrite"), collection_confirm_ok_cb, TRUE);

Expand Down Expand Up @@ -229,7 +229,7 @@ static void collection_save_or_load_dialog(const gchar *path,
fd = file_util_file_dlg(title, "dlg_collection", parent,
collection_save_or_load_dialog_close_cb, cd);

generic_dialog_add_message(GENERIC_DIALOG(fd), NULL, title, NULL);
generic_dialog_add_message(GENERIC_DIALOG(fd), NULL, title, NULL, TRUE);
file_dialog_add_button(fd, stock_id, btntext, btnfunc, TRUE);

file_dialog_add_path_widgets(fd, get_collections_dir(), path,
Expand Down
2 changes: 1 addition & 1 deletion src/collect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ static void collection_close_dlg_show(CollectWindow *cw)
collection_close_cancel_cb, cw);
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION,
_("Close collection"),
_("Collection has been modified.\nSave first?"));
_("Collection has been modified.\nSave first?"), TRUE);

generic_dialog_add_button(gd, GTK_STOCK_SAVE, NULL, collection_close_save_cb, TRUE);
generic_dialog_add_button(gd, GTK_STOCK_DELETE, _("_Discard"), collection_close_close_cb, FALSE);
Expand Down
2 changes: 1 addition & 1 deletion src/desktop_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static void editor_list_window_delete_cb(GtkWidget *widget, gpointer data)

text = g_strdup_printf(_("About to delete the file:\n %s"), path);
generic_dialog_add_message(ewl->gd, GTK_STOCK_DIALOG_QUESTION,
_("Delete file"), text);
_("Delete file"), text, TRUE);
g_free(text);

gtk_widget_show(ewl->gd->dialog);
Expand Down
2 changes: 1 addition & 1 deletion src/editors.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ static EditorVerboseData *editor_verbose_window(EditorData *ed, const gchar *tex
NULL, FALSE,
NULL, ed);
buf = g_strdup_printf(_("Output of %s"), text);
generic_dialog_add_message(vd->gd, NULL, buf, NULL);
generic_dialog_add_message(vd->gd, NULL, buf, NULL, TRUE);
g_free(buf);
vd->button_stop = generic_dialog_add_button(vd->gd, GTK_STOCK_STOP, NULL,
editor_verbose_window_stop, FALSE);
Expand Down
2 changes: 1 addition & 1 deletion src/layout_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ static void layout_menu_write_rotate(GtkToggleAction *action, gpointer data, gbo
gd = generic_dialog_new(_("Image orientation"),
"Image orientation", NULL, TRUE, NULL, NULL);
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_ERROR,
"Image orientation", message->str);
"Image orientation", message->str, TRUE);
generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, NULL, TRUE);

gtk_widget_show(gd->dialog);
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ static gint exit_confirm_dlg(void)
g_free(msg);
msg = g_strdup_printf(_("Quit %s"), GQ_APPNAME);
generic_dialog_add_message(exit_dialog, GTK_STOCK_DIALOG_QUESTION,
msg, _("Collections have been modified. Quit anyway?"));
msg, _("Collections have been modified. Quit anyway?"), TRUE);
g_free(msg);
generic_dialog_add_button(exit_dialog, GTK_STOCK_QUIT, NULL, exit_confirm_exit_cb, TRUE);

Expand Down
2 changes: 1 addition & 1 deletion src/pan-view/pan-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,7 @@ static gboolean pan_warning(FileData *dir_fd)
_("Pan view performance may be poor."),
_("To improve performance of thumbnails in the pan view the"
" following options can be enabled. Note that both options"
" must be enabled to notice a change in performance."));
" must be enabled to notice a change in performance."), TRUE);

group = pref_box_new(box, FALSE, GTK_ORIENTATION_HORIZONTAL, 0);
pref_spacer(group, PREF_PAD_INDENT);
Expand Down
6 changes: 3 additions & 3 deletions src/preferences.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ static void filter_default_cb(GtkWidget *widget, gpointer data)
"reset_filter", widget, TRUE,
dummy_cancel_cb, data);
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, _("Reset filters"),
_("This will reset the file filters to the defaults.\nContinue?"));
_("This will reset the file filters to the defaults.\nContinue?"), TRUE);
generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, filter_default_ok_cb, TRUE);
gtk_widget_show(gd->dialog);
}
Expand Down Expand Up @@ -1022,7 +1022,7 @@ static void safe_delete_clear_cb(GtkWidget *widget, gpointer data)
"clear_trash", widget, TRUE,
dummy_cancel_cb, NULL);
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, _("Clear trash"),
_("This will remove the trash contents."));
_("This will remove the trash contents."), FALSE);
generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, safe_delete_clear_ok_cb, TRUE);
entry = gtk_entry_new();
gtk_widget_set_can_focus(entry, FALSE);
Expand Down Expand Up @@ -1070,7 +1070,7 @@ static void image_overlay_default_template_cb(GtkWidget *widget, gpointer data)
"reset_image_overlay_template_string", widget, TRUE,
dummy_cancel_cb, data);
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, _("Reset image overlay template string"),
_("This will reset the image overlay template string to the default.\nContinue?"));
_("This will reset the image overlay template string to the default.\nContinue?"), TRUE);
generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, image_overlay_default_template_ok_cb, TRUE);
gtk_widget_show(gd->dialog);
}
Expand Down
4 changes: 2 additions & 2 deletions src/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -1976,7 +1976,7 @@ static void print_job_throw_error(PrintWindow *pw, const gchar *message)
generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, NULL, TRUE);

buf = g_strdup_printf(_("An error occured printing to %s."), print_output_name(pw->output));
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_ERROR, _("Printing error"), buf);
generic_dialog_add_message(gd, GTK_STOCK_DIALOG_ERROR, _("Printing error"), buf, TRUE);
g_free(buf);

group = pref_group_new(gd->vbox, FALSE, _("Details"), GTK_ORIENTATION_VERTICAL);
Expand Down Expand Up @@ -2599,7 +2599,7 @@ static gboolean print_job_start(PrintWindow *pw, RenderFormat format, PrintOutpu
print_job_cancel_cb, pw);

msg = g_strdup_printf(_("Printing %d pages to %s."), print_layout_page_count(pw), print_output_name(pw->output));
generic_dialog_add_message(pw->job_dialog, NULL, msg, NULL);
generic_dialog_add_message(pw->job_dialog, NULL, msg, NULL, TRUE);
g_free(msg);

if (pw->job_output == PRINT_OUTPUT_PS_FILE ||
Expand Down
2 changes: 1 addition & 1 deletion src/shortcuts.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static void shortcuts_add_cb(GtkWidget *button, gpointer data)
shortcuts_add_cancel_cb, scd);
file_dialog_add_button(scd->dialog, GTK_STOCK_OK, NULL, shortcuts_add_ok_cb, TRUE);

generic_dialog_add_message(GENERIC_DIALOG(scd->dialog), NULL, title, NULL);
generic_dialog_add_message(GENERIC_DIALOG(scd->dialog), NULL, title, NULL, FALSE);

file_dialog_add_path_widgets(scd->dialog, NULL, NULL, "add_shortcuts", NULL, NULL);

Expand Down
2 changes: 1 addition & 1 deletion src/ui_bookmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static void bookmark_edit(const gchar *key, const gchar *text, GtkWidget *parent
g_signal_connect(G_OBJECT(gd->dialog), "destroy",
G_CALLBACK(bookmark_edit_destroy_cb), p);

generic_dialog_add_message(gd, NULL, _("Edit Bookmark"), NULL);
generic_dialog_add_message(gd, NULL, _("Edit Bookmark"), NULL, FALSE);

generic_dialog_add_button(gd, GTK_STOCK_OK, NULL,
bookmark_edit_ok_cb, TRUE);
Expand Down
2 changes: 1 addition & 1 deletion src/ui_fileops.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static void encoding_dialog(const gchar *path)
generic_dialog_add_button(gd, GTK_STOCK_CLOSE, NULL, NULL, TRUE);

generic_dialog_add_message(gd, GTK_STOCK_DIALOG_WARNING,
_("Filename encoding locale mismatch"), string->str);
_("Filename encoding locale mismatch"), string->str, TRUE);

gtk_widget_show(gd->dialog);

Expand Down
2 changes: 1 addition & 1 deletion src/ui_pathsel.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ static void dest_view_delete(Dest_Data *dd, GtkTreeView *view)

text = g_strdup_printf(_("About to delete the file:\n %s"), path);
generic_dialog_add_message(dd->gd, GTK_STOCK_DIALOG_QUESTION,
_("Delete file"), text);
_("Delete file"), text, TRUE);
g_free(text);

gtk_widget_show(dd->gd->dialog);
Expand Down
2 changes: 1 addition & 1 deletion src/ui_tabcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ static void tab_completion_select_show(TabCompData *td)
file_dialog_add_button(td->fd, GTK_STOCK_OK, NULL,
tab_completion_select_ok_cb, TRUE);

generic_dialog_add_message(GENERIC_DIALOG(td->fd), NULL, title, NULL);
generic_dialog_add_message(GENERIC_DIALOG(td->fd), NULL, title, NULL, TRUE);

path = gtk_entry_get_text(GTK_ENTRY(td->entry));
if (strlen(path) == 0) path = NULL;
Expand Down
17 changes: 14 additions & 3 deletions src/ui_utildlg.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,25 @@ GtkWidget *generic_dialog_add_button(GenericDialog *gd, const gchar *stock_id, c
return button;
}

/**
* @brief
* @param gd
* @param icon_stock_id
* @param heading
* @param text
* @param expand Used as the "expand" and "fill" parameters in the eventual call to gtk_box_pack_start()
* @returns
*
*
*/
GtkWidget *generic_dialog_add_message(GenericDialog *gd, const gchar *icon_stock_id,
const gchar *heading, const gchar *text)
const gchar *heading, const gchar *text, gboolean expand)
{
GtkWidget *hbox;
GtkWidget *vbox;
GtkWidget *label;

hbox = pref_box_new(gd->vbox, TRUE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_SPACE);
hbox = pref_box_new(gd->vbox, expand, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_SPACE);
if (icon_stock_id)
{
GtkWidget *image;
Expand Down Expand Up @@ -321,7 +332,7 @@ GenericDialog *warning_dialog(const gchar *heading, const gchar *text,
gd = generic_dialog_new(heading, "warning", parent, TRUE, NULL, NULL);
generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, warning_dialog_ok_cb, TRUE);

generic_dialog_add_message(gd, icon_stock_id, heading, text);
generic_dialog_add_message(gd, icon_stock_id, heading, text, TRUE);

gtk_widget_show(gd->dialog);

Expand Down
2 changes: 1 addition & 1 deletion src/ui_utildlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ GtkWidget *generic_dialog_add_button(GenericDialog *gd, const gchar *stock_id, c
void generic_dialog_attach_default(GenericDialog *gd, GtkWidget *widget);

GtkWidget *generic_dialog_add_message(GenericDialog *gd, const gchar *icon_stock_id,
const gchar *heading, const gchar *text);
const gchar *heading, const gchar *text, gboolean expand);

gboolean generic_dialog_get_alternative_button_order(GtkWidget *widget);

Expand Down
22 changes: 11 additions & 11 deletions src/utilops.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ GenericDialog *file_util_warning_dialog(const gchar *heading, const gchar *messa
GenericDialog *gd;

gd = file_util_gen_dlg(heading, "warning", parent, TRUE, NULL, NULL);
generic_dialog_add_message(gd, icon_stock_id, heading, message);
generic_dialog_add_message(gd, icon_stock_id, heading, message, TRUE);
generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, file_util_warning_dialog_ok_cb, TRUE);
if (options->place_dialogs_under_mouse)
{
Expand Down Expand Up @@ -592,7 +592,7 @@ static gint file_util_perform_ci_cb(gpointer resume_data, EditorFlags flags, GLi
NULL, TRUE,
file_util_abort_cb, ud);

generic_dialog_add_message(d, GTK_STOCK_DIALOG_WARNING, NULL, msg->str);
generic_dialog_add_message(d, GTK_STOCK_DIALOG_WARNING, NULL, msg->str, TRUE);

generic_dialog_add_button(d, GTK_STOCK_GO_FORWARD, _("Co_ntinue"),
file_util_resume_cb, TRUE);
Expand Down Expand Up @@ -1025,7 +1025,7 @@ void file_util_check_ci(UtilityData *ud)
ud->parent, TRUE,
file_util_check_abort_cb, ud);

generic_dialog_add_message(d, GTK_STOCK_DIALOG_WARNING, _("Really continue?"), desc);
generic_dialog_add_message(d, GTK_STOCK_DIALOG_WARNING, _("Really continue?"), desc, TRUE);

generic_dialog_add_button(d, GTK_STOCK_GO_FORWARD, _("Co_ntinue"),
file_util_check_resume_cb, TRUE);
Expand All @@ -1039,7 +1039,7 @@ void file_util_check_ci(UtilityData *ud)
d = file_util_gen_dlg(ud->messages.title, "dlg_confirm",
ud->parent, TRUE,
file_util_check_abort_cb, ud);
generic_dialog_add_message(d, GTK_STOCK_DIALOG_WARNING, _("This operation can't continue:"), desc);
generic_dialog_add_message(d, GTK_STOCK_DIALOG_WARNING, _("This operation can't continue:"), desc, TRUE);

gtk_widget_show(d->dialog);
}
Expand Down Expand Up @@ -1152,7 +1152,7 @@ static void file_util_fdlg_ok_cb(FileDialog *fdlg, gpointer data)
d = file_util_gen_dlg(ud->messages.title, "dlg_confirm",
ud->parent, TRUE,
file_util_check_abort_cb, ud);
generic_dialog_add_message(d, GTK_STOCK_DIALOG_WARNING, _("This operation can't continue:"), desc);
generic_dialog_add_message(d, GTK_STOCK_DIALOG_WARNING, _("This operation can't continue:"), desc, TRUE);

gtk_widget_show(d->dialog);
ud->phase = UTILITY_PHASE_START;
Expand Down Expand Up @@ -1511,7 +1511,7 @@ static void file_util_dialog_init_simple_list(UtilityData *ud)

box = generic_dialog_add_message(ud->gd, GTK_STOCK_DIALOG_QUESTION,
ud->messages.question,
dir_msg);
dir_msg, TRUE);

g_free(dir_msg);

Expand Down Expand Up @@ -1558,7 +1558,7 @@ static void file_util_dialog_init_dest_folder(UtilityData *ud)

ud->fdlg = fdlg;

generic_dialog_add_message(GENERIC_DIALOG(fdlg), NULL, ud->messages.question, NULL);
generic_dialog_add_message(GENERIC_DIALOG(fdlg), NULL, ud->messages.question, NULL, FALSE);

label = pref_label_new(GENERIC_DIALOG(fdlg)->vbox, _("Choose the destination folder."));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
Expand Down Expand Up @@ -1606,7 +1606,7 @@ static void file_util_dialog_init_source_dest(UtilityData *ud, gboolean second_i
ud->gd = file_util_gen_dlg(ud->messages.title, "dlg_confirm",
ud->parent, FALSE, file_util_cancel_cb, ud);

box = generic_dialog_add_message(ud->gd, NULL, ud->messages.question, NULL);
box = generic_dialog_add_message(ud->gd, NULL, ud->messages.question, NULL, TRUE);

if (ud->discard_func) generic_dialog_add_button(ud->gd, GTK_STOCK_REVERT_TO_SAVED, _("Discard changes"), file_util_discard_cb, FALSE);
if (ud->details_func) generic_dialog_add_button(ud->gd, GTK_STOCK_INFO, _("File details"), file_util_details_cb, FALSE);
Expand Down Expand Up @@ -1981,7 +1981,7 @@ static void file_util_details_dialog(UtilityData *ud, FileData *fd)

message = file_util_details_get_message(ud, fd, &stock_id);

box = generic_dialog_add_message(gd, stock_id, _("File details"), message);
box = generic_dialog_add_message(gd, stock_id, _("File details"), message, TRUE);

generic_dialog_add_image(gd, box, fd, NULL, FALSE, NULL, NULL, FALSE);

Expand Down Expand Up @@ -2037,7 +2037,7 @@ static void file_util_write_metadata_details_dialog(UtilityData *ud, FileData *f
message2 = g_strdup_printf(_("The following metadata tags will be written to the image file itself."));
}

box = generic_dialog_add_message(gd, stock_id, _("Overview of changed metadata"), message1);
box = generic_dialog_add_message(gd, stock_id, _("Overview of changed metadata"), message1, TRUE);

box = pref_group_new(box, TRUE, message2, GTK_ORIENTATION_HORIZONTAL);

Expand Down Expand Up @@ -2637,7 +2637,7 @@ static void file_util_delete_dir_full(FileData *fd, GtkWidget *parent, UtilityPh
fd->path);
box = generic_dialog_add_message(gd, GTK_STOCK_DIALOG_WARNING,
_("Folder contains subfolders"),
text);
text, TRUE);
g_free(text);

box = pref_group_new(box, TRUE, _("Subfolders:"), GTK_ORIENTATION_VERTICAL);
Expand Down

0 comments on commit 6d3a295

Please sign in to comment.