[eog] EogPrintPreview: Silence -Wswitch-default
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogPrintPreview: Silence -Wswitch-default
- Date: Mon, 14 Mar 2016 18:59:07 +0000 (UTC)
commit 4e74b7661893e64547858db6e4775e012bb63e0a
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Mar 11 19:01:22 2016 +0100
EogPrintPreview: Silence -Wswitch-default
https://bugzilla.gnome.org/show_bug.cgi?id=763505
src/eog-print-preview.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-print-preview.c b/src/eog-print-preview.c
index 2182b2d..3dfbdfe 100644
--- a/src/eog-print-preview.c
+++ b/src/eog-print-preview.c
@@ -746,6 +746,8 @@ button_press_event_cb (GtkWidget *widget,
case 1:
preview->priv->grabbed = press_inside_image_area (preview, event->x, event->y);
break;
+ default:
+ break;
}
if (preview->priv->grabbed) {
@@ -770,7 +772,9 @@ button_release_event_cb (GtkWidget *widget,
preview->priv->r_dx = 0;
preview->priv->r_dy = 0;
gtk_widget_queue_draw (GTK_WIDGET (preview));
-
+ break;
+ default:
+ break;
}
return FALSE;
}
@@ -803,6 +807,8 @@ key_press_event_cb (GtkWidget *widget,
property = "image-y-align";
delta = 0.01;
break;
+ default:
+ break;
}
if (delta != 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]