[eog/gnome-2-26] Add missing break statements
- From: Felix Riemann <friemann src gnome org>
- To: svn-commits-list gnome org
- Subject: [eog/gnome-2-26] Add missing break statements
- Date: Sat, 18 Apr 2009 10:37:56 -0400 (EDT)
commit fa31c1fd2d5277b476840b4c16433a6eb1222f44
Author: Felix Riemann <friemann svn gnome org>
Date: Sat Apr 18 16:34:19 2009 +0200
Add missing break statements
Fixes crashes when exploring eog's UI with gtkparasite.
---
ChangeLog | 6 ++++++
src/eog-uri-converter.c | 1 +
src/eog-window.c | 1 +
3 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5cc1c4f..f629ab2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-18 Felix Riemann <friemann svn gnome org>
+
+ * src/eog-uri-converter.c (eog_uri_converter_get_property):
+ * src/eog-window.c (eog_window_get_property):
+ Add missing break statements to fix crashes with gtkparasite.
+
2009-04-17 Felix Riemann <friemann svn gnome org>
* src/eog-metadata-reader-jpg.c (eog_metadata_reader_jpg_consume):
diff --git a/src/eog-uri-converter.c b/src/eog-uri-converter.c
index 2186169..d8dbdd5 100644
--- a/src/eog-uri-converter.c
+++ b/src/eog-uri-converter.c
@@ -258,6 +258,7 @@ eog_uri_converter_get_property (GObject *object,
case PROP_COUNTER_N_DIGITS:
g_value_set_uint (value, priv->counter_n_digits);
+ break;
default:
g_assert_not_reached ();
diff --git a/src/eog-window.c b/src/eog-window.c
index c86531a..63e6874 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -4733,6 +4733,7 @@ eog_window_get_property (GObject *object,
switch (property_id) {
case PROP_STARTUP_FLAGS:
g_value_set_uchar (value, priv->flags);
+ break;
default:
g_assert_not_reached ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]