[bijiben] biji-editor-selection: Fixed editor set selection switch
- From: Jonathan Kang <jonathankang src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] biji-editor-selection: Fixed editor set selection switch
- Date: Fri, 19 May 2017 05:49:22 +0000 (UTC)
commit 5be656f70a2b02acf055112f2762ed6bf5fa7f46
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Sat May 6 11:57:30 2017 +0200
biji-editor-selection: Fixed editor set selection switch
Fixed editor set selection switch missing default case error.
https://bugzilla.gnome.org/show_bug.cgi?id=771225
src/libbiji/editor/biji-editor-selection.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/libbiji/editor/biji-editor-selection.c b/src/libbiji/editor/biji-editor-selection.c
index fc38d7c..e0bbfd1 100644
--- a/src/libbiji/editor/biji-editor-selection.c
+++ b/src/libbiji/editor/biji-editor-selection.c
@@ -143,25 +143,26 @@ e_editor_selection_set_property (GObject *object,
case PROP_WEBVIEW:
editor_selection_set_webview (
selection, g_value_get_object (value));
- return;
+ break;
case PROP_BOLD:
e_editor_selection_set_bold (
selection, g_value_get_boolean (value));
- return;
+ break;
case PROP_ITALIC:
e_editor_selection_set_italic (
selection, g_value_get_boolean (value));
- return;
+ break;
case PROP_STRIKE_THROUGH:
e_editor_selection_set_strike_through (
selection, g_value_get_boolean (value));
- return;
- }
+ break;
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]