[ASK] Add custom image to menubar using gtkaction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello every body,

I'm berginner in gtk,
I have a question, how add custom icon to my menubar using gtkaction?
I have been googling for tow days, but still can't add custom icon to my menubar,
My example code in attachement.

Thank you,, 

Attachment: builder.ui
Description: Binary data

#include <iostream>
#include <gtk/gtk.h>

int main(int argc,
	   char *argv[])
{	

GtkBuilder *pcGBuilder;	

    GError     *pcGError = NULL;

	gtk_init(&argc, &argv);

    pcGBuilder = gtk_builder_new ();
    gtk_builder_add_from_file( pcGBuilder, "builder.ui", &pcGError );

    GtkWidget *mainWindow = GTK_WIDGET ( gtk_builder_get_object( pcGBuilder, "mainWindow" ) );


    gtk_builder_connect_signals( pcGBuilder, NULL );

    g_object_unref( G_OBJECT( pcGBuilder ) );

    gtk_widget_show( GTK_WIDGET(mainWindow) );

    /* Start main loop */
    gtk_main();

}
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux