Commit f78277f0 authored by Matthias Clasen's avatar Matthias Clasen

Fix the default value of the tearoff-title property

svn path=/trunk/; revision=19257
parent 1312be0d
2007-12-27 Matthias Clasen <mclasen@redhat.com> 2007-12-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c: Correct the default value for the
tearoff-title property.
* gtk/gtkcellrenderertext.c: Fix the default value for the * gtk/gtkcellrenderertext.c: Fix the default value for the
wrap-mode and font-scale properties. wrap-mode and font-scale properties.
......
...@@ -802,7 +802,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass) ...@@ -802,7 +802,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
g_param_spec_string ("tearoff-title", g_param_spec_string ("tearoff-title",
P_("Tearoff Title"), P_("Tearoff Title"),
P_("A title that may be displayed by the window manager when the popup is torn-off"), P_("A title that may be displayed by the window manager when the popup is torn-off"),
"", NULL,
GTK_PARAM_READWRITE)); GTK_PARAM_READWRITE));
...@@ -5523,13 +5523,17 @@ void ...@@ -5523,13 +5523,17 @@ void
gtk_combo_box_set_title (GtkComboBox *combo_box, gtk_combo_box_set_title (GtkComboBox *combo_box,
const gchar *title) const gchar *title)
{ {
GtkComboBoxPrivate *priv;
g_return_if_fail (GTK_IS_COMBO_BOX (combo_box)); g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
priv = combo_box->priv;
if (strcmp (title ? title : "", if (strcmp (title ? title : "",
combo_box->priv->tearoff_title ? combo_box->priv->tearoff_title : "") != 0) priv->tearoff_title ? priv->tearoff_title : "") != 0)
{ {
g_free (combo_box->priv->tearoff_title); g_free (priv->tearoff_title);
combo_box->priv->tearoff_title = g_strdup (title); priv->tearoff_title = g_strdup (title);
gtk_combo_box_update_title (combo_box); gtk_combo_box_update_title (combo_box);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment