Simplify.
This commit is contained in:
@ -69,7 +69,8 @@ eek_gtk_key_real_set_keysyms (EekKey *self,
|
|||||||
|
|
||||||
g_return_if_fail (priv);
|
g_return_if_fail (priv);
|
||||||
eek_key_set_keysyms (EEK_KEY(priv->simple), keysyms, groups, levels);
|
eek_key_set_keysyms (EEK_KEY(priv->simple), keysyms, groups, levels);
|
||||||
eek_key_set_keysym_index (EEK_KEY(self), 0, 0);
|
if (groups > 0 && levels > 0)
|
||||||
|
eek_key_set_keysym_index (EEK_KEY(self), 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
|
|||||||
@ -248,12 +248,6 @@ eek_section_iface_init (EekSectionIface *iface)
|
|||||||
static void
|
static void
|
||||||
eek_gtk_section_dispose (GObject *object)
|
eek_gtk_section_dispose (GObject *object)
|
||||||
{
|
{
|
||||||
EekGtkSectionPrivate *priv = EEK_GTK_SECTION_GET_PRIVATE(object);
|
|
||||||
gint i, num_rows;
|
|
||||||
|
|
||||||
num_rows = eek_section_get_rows (EEK_SECTION(object));
|
|
||||||
for (i = 0; i < num_rows; i++)
|
|
||||||
gtk_container_remove (GTK_CONTAINER(object), priv->rows[i]);
|
|
||||||
G_OBJECT_CLASS (eek_gtk_section_parent_class)->dispose (object);
|
G_OBJECT_CLASS (eek_gtk_section_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,8 +256,8 @@ eek_gtk_section_finalize (GObject *object)
|
|||||||
{
|
{
|
||||||
EekGtkSectionPrivate *priv = EEK_GTK_SECTION_GET_PRIVATE(object);
|
EekGtkSectionPrivate *priv = EEK_GTK_SECTION_GET_PRIVATE(object);
|
||||||
|
|
||||||
g_object_unref (priv->simple);
|
|
||||||
g_slice_free (GtkWidget *, priv->rows);
|
g_slice_free (GtkWidget *, priv->rows);
|
||||||
|
g_object_unref (priv->simple);
|
||||||
G_OBJECT_CLASS (eek_gtk_section_parent_class)->finalize (object);
|
G_OBJECT_CLASS (eek_gtk_section_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user