GTKWidget *toolbar in PidginConversation

Diego Acuña diego.desu at googlemail.com
Sat May 23 16:30:20 EDT 2009


well, i'm trying to make a plugin for pidgin, in this plugin i've to put a
button in the toolbar of the conversation (in pidgin), all this runs okey
but the button appears in the right side of the toolbar (far from the
smilies button), somebody knows how to put the button right after the
smilies button??.

Here's my code to put the button:

static void
> create_button (PidginConversation *conv)
> {
>     GtkWidget *button, *image, *vs;
>
>     button = gtk_button_new();
>     gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
>     g_signal_connect(G_OBJECT(button), "clicked",
> G_CALLBACK(send_button_cb), conv);
>
>     image = gtk_image_new_from_file(".purple/button.png");
>
>     gtk_container_add((GtkContainer *)button, image);
>
>     vs = gtk_vseparator_new();
>
>     gtk_widget_show(vs);
>     gtk_widget_show_all(button);
>
>     gtk_box_pack_start(GTK_BOX(conv->toolbar), vs, FALSE, FALSE, 0);
>     gtk_box_pack_start(GTK_BOX(conv->toolbar), button, FALSE, FALSE, 0);
>
>     g_object_set_data(G_OBJECT(conv->toolbar), "plugin_separator", vs);
>     g_object_set_data(G_OBJECT(conv->toolbar), "plugin_button", button);
> }


any idea?

thanks for your time! bye.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/devel/attachments/20090523/1f7e2b7b/attachment.html>


More information about the Devel mailing list