X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-recpt-editor.c;h=78a73ab0f91bcf307c72aef63bb0cce0b45c0160;hb=c5637dfb0beccca9e090c874336a387277433ab6;hp=5449a573bfb9418c094808a0852fe10628d76467;hpb=326ddf804e1bc2542650028660f4eb5cc82af96a;p=modest diff --git a/src/widgets/modest-recpt-editor.c b/src/widgets/modest-recpt-editor.c index 5449a57..78a73ab 100644 --- a/src/widgets/modest-recpt-editor.c +++ b/src/widgets/modest-recpt-editor.c @@ -228,6 +228,7 @@ modest_recpt_editor_instance_init (GTypeInstance *instance, gpointer g_class) priv->abook_button = gtk_button_new (); gtk_button_set_relief (GTK_BUTTON (priv->abook_button), GTK_RELIEF_NONE); gtk_button_set_focus_on_click (GTK_BUTTON (priv->abook_button), FALSE); + GTK_WIDGET_UNSET_FLAGS (priv->abook_button, GTK_CAN_FOCUS); gtk_button_set_alignment (GTK_BUTTON (priv->abook_button), 1.0, 1.0); abook_icon = gtk_image_new_from_icon_name ("qgn_list_gene_contacts", GTK_ICON_SIZE_BUTTON); gtk_container_add (GTK_CONTAINER (priv->abook_button), abook_icon); @@ -253,6 +254,9 @@ modest_recpt_editor_instance_init (GTypeInstance *instance, gpointer g_class) g_signal_connect (G_OBJECT (priv->abook_button), "clicked", G_CALLBACK (modest_recpt_editor_on_abook_clicked), instance); + GTK_WIDGET_SET_FLAGS (GTK_WIDGET (instance), GTK_CAN_FOCUS); + gtk_container_set_focus_child (GTK_CONTAINER (instance), priv->text_view); + return; }