Changing of icon of toolbar button
- From: Michal ROMAN <michal roman nov sk>
- To: gtk-app-devel-list gnome org
- Subject: Changing of icon of toolbar button
- Date: 07 Nov 2001 16:52:03 +0100
Hi,
I have created toolbar :
toolbar1 = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL,
GTK_TOOLBAR_BOTH);
gtk_widget_ref (toolbar1);
gtk_object_set_data_full (GTK_OBJECT (window1), "toolbar1", toolbar1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (toolbar1);
gtk_container_add (GTK_CONTAINER (handlebox1), toolbar1);
tmp_toolbar_icon = create_pixmap (window1, "icon.xpm");
button1 = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1),
GTK_TOOLBAR_CHILD_BUTTON, NULL, _("button1"), NULL,
NULL,tmp_toolbar_icon, NULL, NULL);
gtk_widget_ref (button1);
gtk_object_set_data_full (GTK_OBJECT (window1), "button1", button1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (button1);
How can I change icon for button1 in my program?
Thank's
Michal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]