replace gtk_toolbar_append_space()
This commit is contained in:
@@ -31,6 +31,12 @@
|
||||
#include "pointer.h"
|
||||
|
||||
|
||||
void toolbar_append_space( GtkToolbar* toolbar ){
|
||||
GtkToolItem* space = gtk_separator_tool_item_new();
|
||||
gtk_widget_show( GTK_WIDGET( space ) );
|
||||
gtk_toolbar_insert( toolbar, space, -1 );
|
||||
}
|
||||
|
||||
void toolbar_append( GtkToolbar* toolbar, GtkButton* button, const char* description ){
|
||||
gtk_widget_show( GTK_WIDGET( button ) );
|
||||
gtk_button_set_relief( button, GTK_RELIEF_NONE );
|
||||
|
||||
@@ -30,6 +30,7 @@ typedef struct _GtkToolbar GtkToolbar;
|
||||
class Command;
|
||||
class Toggle;
|
||||
|
||||
void toolbar_append_space( GtkToolbar* toolbar );
|
||||
GtkButton* toolbar_append_button( GtkToolbar* toolbar, const char* description, const char* icon, const Callback& callback );
|
||||
GtkButton* toolbar_append_button( GtkToolbar* toolbar, const char* description, const char* icon, const Command& command );
|
||||
GtkToggleButton* toolbar_append_toggle_button( GtkToolbar* toolbar, const char* description, const char* icon, const Callback& callback );
|
||||
|
||||
Reference in New Issue
Block a user