2008-10-09 Alberto Garcia <agarcia@igalia.com>
authorAlberto Garcia <agarcia@igalia.com>
Thu, 9 Oct 2008 10:35:29 +0000 (10:35 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Thu, 9 Oct 2008 10:35:29 +0000 (10:35 +0000)
* src/hildon-app-menu.c: Removed the 'columns' property, as now
this is managed automatically by the widget when the size of the
screen changes.

ChangeLog
src/hildon-app-menu.c

index c601679..b582b04 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-10-09  Alberto Garcia  <agarcia@igalia.com>
 
+       * src/hildon-app-menu.c: Removed the 'columns' property, as now
+       this is managed automatically by the widget when the size of the
+       screen changes.
+
+2008-10-09  Alberto Garcia  <agarcia@igalia.com>
+
        * src/hildon-picker-button.c
        (hildon_picker_button_set_done_button_text): Make a copy of the
        text, and free the previous value.
index 130d1f5..42df86a 100644 (file)
 #include                                        "hildon-app-menu.h"
 #include                                        "hildon-app-menu-private.h"
 
-enum {
-    PROP_COLUMNS = 1
-};
-
 static GdkWindow *
 grab_transfer_window_get                        (GtkWidget *widget);
 
@@ -286,27 +282,6 @@ hildon_app_menu_set_columns                     (HildonAppMenu *menu,
 }
 
 static void
-hildon_app_menu_set_property                    (GObject      *object,
-                                                 guint         prop_id,
-                                                 const GValue *value,
-                                                 GParamSpec   *pspec)
-{
-    HildonAppMenu *menu = HILDON_APP_MENU (object);
-
-    switch (prop_id)
-    {
-    case PROP_COLUMNS:
-        g_warning ("The 'columns' property will be removed in the future. "
-                   "See HildonAppMenu documentation for details");
-        hildon_app_menu_set_columns (menu, g_value_get_uint (value));
-        break;
-    default:
-        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
-        break;
-    }
-}
-
-static void
 screen_size_changed                            (GdkScreen     *screen,
                                                 HildonAppMenu *menu)
 {
@@ -699,7 +674,6 @@ hildon_app_menu_class_init                      (HildonAppMenuClass *klass)
     GtkWidgetClass *widget_class = (GtkWidgetClass *)klass;
 
     gobject_class->finalize = hildon_app_menu_finalize;
-    gobject_class->set_property = hildon_app_menu_set_property;
     widget_class->map = hildon_app_menu_map;
     widget_class->unmap = hildon_app_menu_unmap;
     widget_class->realize = hildon_app_menu_realize;
@@ -710,19 +684,6 @@ hildon_app_menu_class_init                      (HildonAppMenuClass *klass)
 
     g_type_class_add_private (klass, sizeof (HildonAppMenuPrivate));
 
-    g_object_class_install_property (
-        gobject_class,
-        PROP_COLUMNS,
-        g_param_spec_uint (
-            "columns",
-            "Columns",
-            "Number of columns used to display menu items. "
-            "IMPORTANT: this is a temporary property. Don't use unless really needed. "
-            "The number of columns will be managed automatically in the future, "
-            "and this property will be removed.",
-            1, G_MAXUINT, 2,
-            G_PARAM_WRITABLE));
-
     gtk_widget_class_install_style_property (
         widget_class,
         g_param_spec_uint (