- tool->m_item = gtk_toolbar_append_element
- (
- GTK_TOOLBAR(m_toolbar),
- ctype,
- (GtkWidget *)NULL,
- (const char *)NULL,
- helpString1,
- "",
- tool_pixmap,
- (GtkSignalFunc)gtk_toolbar_callback,
- (gpointer)tool
- );
+ GtkWidget *item = gtk_toolbar_append_element
+ (
+ GTK_TOOLBAR(m_toolbar),
+ ctype,
+ (GtkWidget *)NULL,
+ (const char *)NULL,
+ helpString1,
+ "",
+ tool_pixmap,
+ (GtkSignalFunc)gtk_toolbar_callback,
+ (gpointer)tool
+ );
+
+ tool->m_item = item;