Compare commits
2 Commits
c905f64d12
...
37adaac965
Author | SHA1 | Date | |
---|---|---|---|
37adaac965 | |||
1dce2e079c |
@ -269,6 +269,8 @@ fastiv_view_scroll_event(GtkWidget *widget, GdkEventScroll *event)
|
||||
FastivView *self = FASTIV_VIEW(widget);
|
||||
if (!self->surface)
|
||||
return FALSE;
|
||||
if (event->state & gtk_accelerator_get_default_mod_mask())
|
||||
return FALSE;
|
||||
|
||||
switch (event->direction) {
|
||||
case GDK_SCROLL_UP:
|
||||
@ -312,7 +314,7 @@ fastiv_view_class_init(FastivViewClass *klass)
|
||||
"scale", "Scale", "Zoom level",
|
||||
0, G_MAXDOUBLE, 1.0, G_PARAM_READABLE);
|
||||
view_properties[PROP_SCALE_TO_FIT] = g_param_spec_boolean(
|
||||
"scale-to-fit", "Scale to fit", "Scale images doewn to fit the window",
|
||||
"scale-to-fit", "Scale to fit", "Scale images down to fit the window",
|
||||
TRUE, G_PARAM_READABLE);
|
||||
g_object_class_install_properties(
|
||||
object_class, N_PROPERTIES, view_properties);
|
||||
|
Loading…
x
Reference in New Issue
Block a user