Simplify.

This commit is contained in:
Daiki Ueno
2010-06-07 08:04:05 +09:00
parent 2cfb5004c5
commit 9008ef3257
2 changed files with 3 additions and 8 deletions

View File

@ -69,7 +69,8 @@ eek_gtk_key_real_set_keysyms (EekKey *self,
g_return_if_fail (priv);
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

View File

@ -248,12 +248,6 @@ eek_section_iface_init (EekSectionIface *iface)
static void
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);
}
@ -262,8 +256,8 @@ eek_gtk_section_finalize (GObject *object)
{
EekGtkSectionPrivate *priv = EEK_GTK_SECTION_GET_PRIVATE(object);
g_object_unref (priv->simple);
g_slice_free (GtkWidget *, priv->rows);
g_object_unref (priv->simple);
G_OBJECT_CLASS (eek_gtk_section_parent_class)->finalize (object);
}