replace gtk_toolbar_append_space()

This commit is contained in:
Garux
2020-05-22 00:23:41 +03:00
parent f6bf97f27e
commit 64e0c125e8
4 changed files with 25 additions and 17 deletions

View File

@@ -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 );

View File

@@ -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 );