[eog] EogWindow: Add stop mark to zoom slider at 100% zoom
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogWindow: Add stop mark to zoom slider at 100% zoom
- Date: Mon, 22 Jun 2015 18:29:51 +0000 (UTC)
commit 2cb75ec6e88753a0019d7876fbca57b5fb258edf
Author: Felix Riemann <friemann gnome org>
Date: Mon Jun 22 20:29:08 2015 +0200
EogWindow: Add stop mark to zoom slider at 100% zoom
https://bugzilla.gnome.org/show_bug.cgi?id=746132
src/eog-window.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index f19990e..9358109 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4308,6 +4308,9 @@ eog_window_construct_ui (EogWindow *window)
priv->zoom_scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL,
0.3, 3.0, 0.1);
gtk_scale_set_draw_value (GTK_SCALE (priv->zoom_scale), FALSE);
+ /* Add a stop mark at 100% */
+ gtk_scale_add_mark (GTK_SCALE (priv->zoom_scale),
+ 1.0, GTK_POS_BOTTOM, NULL);
/* TODO: the scale by itself does not take any width, so we manually
* set it here. Decide on the optimal value. */
gtk_widget_set_size_request (priv->zoom_scale, 200, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]