X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=libempathy-gtk%2Fempathy-local-xmpp-assistant-widget.c;fp=libempathy-gtk%2Fempathy-local-xmpp-assistant-widget.c;h=cf38039285de521ddd387c26e55306c9ed7ca2e4;hp=9caca7de95b3c28fff80db206bc9d16ee8bd8e80;hb=d86e51de57197b0f0ce77fac46fc113713aa9033;hpb=09ac300a093ffe494cbea40bd5c3e2bca74aee4f diff --git a/libempathy-gtk/empathy-local-xmpp-assistant-widget.c b/libempathy-gtk/empathy-local-xmpp-assistant-widget.c index 9caca7de..cf380392 100644 --- a/libempathy-gtk/empathy-local-xmpp-assistant-widget.c +++ b/libempathy-gtk/empathy-local-xmpp-assistant-widget.c @@ -137,8 +137,7 @@ empathy_local_xmpp_assistant_widget_constructed (GObject *object) object; GtkWidget *w; GdkPixbuf *pix; - GtkWidget *account_widget; - EmpathyAccountWidget *widget_object; + EmpathyAccountWidget *account_widget; gchar *markup; G_OBJECT_CLASS (empathy_local_xmpp_assistant_widget_parent_class)-> @@ -165,17 +164,15 @@ empathy_local_xmpp_assistant_widget_constructed (GObject *object) self->priv->settings = create_salut_account_settings (); - widget_object = empathy_account_widget_new_for_protocol (self->priv->settings, - TRUE); - empathy_account_widget_hide_buttons (widget_object); + account_widget = empathy_account_widget_new_for_protocol ( + self->priv->settings, TRUE); + empathy_account_widget_hide_buttons (account_widget); - account_widget = empathy_account_widget_get_widget (widget_object); - - g_signal_connect (widget_object, "handle-apply", + g_signal_connect (account_widget, "handle-apply", G_CALLBACK (handle_apply_cb), self); - gtk_grid_attach (GTK_GRID (self), account_widget, 0, 1, 2, 1); - gtk_widget_show (account_widget); + gtk_grid_attach (GTK_GRID (self), GTK_WIDGET (account_widget), 0, 1, 2, 1); + gtk_widget_show (GTK_WIDGET (account_widget)); w = gtk_label_new (NULL); markup = g_strdup_printf (