115 create_item(obj, headerbar, box, item, pos); |
115 create_item(obj, headerbar, box, item, pos); |
116 } |
116 } |
117 } |
117 } |
118 |
118 |
119 void ui_add_headerbar_item(GtkWidget *headerbar, GtkWidget *box, UiToolbarItem *item, UiObject *obj, enum UiToolbarPos pos) { |
119 void ui_add_headerbar_item(GtkWidget *headerbar, GtkWidget *box, UiToolbarItem *item, UiObject *obj, enum UiToolbarPos pos) { |
120 GtkWidget *button = gtk_button_new_with_label(item->args.label); |
120 GtkWidget *button = ui_create_button(obj, item->args.label, item->args.icon, item->args.onclick, item->args.onclickdata); |
121 WIDGET_ADD_CSS_CLASS(button, "flat"); |
121 WIDGET_ADD_CSS_CLASS(button, "flat"); |
122 headerbar_add(headerbar, box, button, pos); |
122 headerbar_add(headerbar, box, button, pos); |
123 } |
123 } |
124 |
124 |
125 #endif |
125 #endif |