HBox::HBox(bool homogenous, int spacing) : HBox(GTK_HBOX(gtk_hbox_new(homogenous, spacing)))
{ }
+ Image::Image() : Image(GTK_IMAGE(gtk_image_new()))
+ { }
+
Label::Label(const char *label) : Label(GTK_LABEL(gtk_label_new(label)))
{ }
using ui_frame = struct _GtkFrame;
using ui_hbox = struct _GtkHBox;
using ui_hpaned = struct _GtkHPaned;
+using ui_image = struct _GtkImage;
using ui_label = struct _GtkLabel;
using ui_menu = struct _GtkMenu;
using ui_menuitem = struct _GtkMenuItem;
HBox(bool homogenous, int spacing);
);
+ WRAP(Image, Widget, ui_image,
+ Image();
+ );
+
WRAP(Label, Widget, ui_label,
Label(const char *label);
);
GtkButton* clearbutton = create_dialog_button( "Clear", (GCallback) accelerator_clear_button_clicked, &dialog );
gtk_box_pack_start( GTK_BOX( vbox ), GTK_WIDGET( clearbutton ), FALSE, FALSE, 0 );
- ui::Widget spacer = ui::Widget(gtk_image_new());
+ ui::Widget spacer = ui::Image();
gtk_widget_show( spacer );
gtk_box_pack_start( GTK_BOX( vbox ), GTK_WIDGET( spacer ), TRUE, TRUE, 0 );