Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
evince
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
GNOME
evince
Commits
93b94ad7
Commit
93b94ad7
authored
Nov 06, 2018
by
Germán Poo-Caamaño
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell: Sync overwrite dialog against GtkFileChooserWidget
* Remove some deprecated symbols
parent
4193ea46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
shell/ev-sidebar-attachments.c
shell/ev-sidebar-attachments.c
+11
-9
No files found.
shell/ev-sidebar-attachments.c
View file @
93b94ad7
...
...
@@ -443,15 +443,12 @@ write_xds_property (GdkDragContext *context,
static
void
ev_add_custom_button_to_dialog
(
GtkDialog
*
dialog
,
const
gchar
*
mnemonic_label
,
const
gchar
*
stock_id
,
gint
response_id
)
{
GtkWidget
*
button
;
button
=
gtk_button_new_with_mnemonic
(
mnemonic_label
);
gtk_widget_set_can_default
(
button
,
TRUE
);
gtk_button_set_image
(
GTK_BUTTON
(
button
),
gtk_image_new_from_stock
(
stock_id
,
GTK_ICON_SIZE_BUTTON
));
gtk_widget_show
(
button
);
gtk_dialog_add_action_widget
(
GTK_DIALOG
(
dialog
),
button
,
response_id
);
...
...
@@ -495,13 +492,18 @@ ev_sidebar_attachments_confirm_overwrite (EvSidebarAttachments *attachbar,
" it will overwrite its contents."
),
uri
);
gtk_dialog_add_button
(
GTK_DIALOG
(
dialog
),
GTK_STOCK_CANCEL
,
GTK_RESPONSE_CANCEL
);
gtk_dialog_add_button
(
GTK_DIALOG
(
dialog
),
_
(
"_Cancel"
)
,
GTK_RESPONSE_CANCEL
);
ev_add_custom_button_to_dialog
(
GTK_DIALOG
(
dialog
),
_
(
"_Replace"
),
GTK_STOCK_SAVE_AS
,
GTK_RESPONSE_ACCEPT
);
gtk_dialog_set_alternative_button_order
(
GTK_DIALOG
(
dialog
),
GTK_RESPONSE_ACCEPT
,
GTK_RESPONSE_CANCEL
,
-
1
);
GTK_RESPONSE_ACCEPT
);
/* We are mimicking GtkFileChooserWidget behaviour, hence we keep the
* code synced and act like that.
*/
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_dialog_set_alternative_button_order
(
GTK_DIALOG
(
dialog
),
GTK_RESPONSE_ACCEPT
,
GTK_RESPONSE_CANCEL
,
-
1
);
G_GNUC_END_IGNORE_DEPRECATIONS
gtk_dialog_set_default_response
(
GTK_DIALOG
(
dialog
),
GTK_RESPONSE_ACCEPT
);
if
(
gtk_window_has_group
(
GTK_WINDOW
(
toplevel
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment