]> err.no Git - libchamplain/commitdiff
Fix the single-line-mode property
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 12 Apr 2009 13:33:53 +0000 (09:33 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 12 Apr 2009 13:34:06 +0000 (09:34 -0400)
champlain/champlain-marker.c

index 2fbb9d3b3f9d7274691ea61e47b0e73746306995..f59a94579828f3d9aebff74794794713a12d9175 100644 (file)
@@ -74,6 +74,7 @@ enum
   PROP_FONT_NAME,
   PROP_WRAP,
   PROP_WRAP_MODE,
+  PROP_SINGLE_LINE_MODE,
   PROP_DRAW_BACKGROUND
 };
 
@@ -150,6 +151,9 @@ champlain_marker_get_property (GObject *object,
         case PROP_ELLIPSIZE:
           g_value_set_enum (value, priv->ellipsize);
           break;
+        case PROP_SINGLE_LINE_MODE:
+          g_value_set_enum (value, priv->single_line_mode);
+          break;
         default:
           G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       }
@@ -199,6 +203,9 @@ champlain_marker_set_property (GObject *object,
       case PROP_DRAW_BACKGROUND:
         champlain_marker_set_draw_background (marker, g_value_get_boolean (value));
         break;
+      case PROP_SINGLE_LINE_MODE:
+        champlain_marker_set_single_line_mode (marker, g_value_get_boolean (value));
+        break;
       default:
         G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
     }