fix C-level warnings
parent
ebacb74f5b
commit
eace35174c
|
@ -33,7 +33,8 @@ class ConfigWindow : Dialog {
|
|||
position = WindowPosition.CENTER;
|
||||
|
||||
var table = new Gtk.Table(1,4,false);
|
||||
vbox.pack_start(table, false, true, 10);
|
||||
var content = this.get_content_area () as Gtk.Box;
|
||||
content.pack_start(table, false, true, 10);
|
||||
|
||||
fullscreen_control_window = new Gtk.CheckButton.with_label("Fullscreen Configuration Window");
|
||||
table.attach(fullscreen_control_window, 0, 2, 0, 1, Gtk.AttachOptions.FILL, 0, 0, 0);
|
||||
|
|
|
@ -29,12 +29,14 @@ class ErrorDialog : Dialog {
|
|||
var label = new Label(message);
|
||||
var hbox = new HBox(false, 0);
|
||||
var img = new Image.from_stock(Stock.DIALOG_ERROR, IconSize.DIALOG);
|
||||
var content = this.get_content_area () as Gtk.Box;
|
||||
|
||||
hbox.pack_start(img, false, true, 10);
|
||||
hbox.pack_start(label, false, true, 10);
|
||||
|
||||
this.set_icon_name("gtk-dialog-error");
|
||||
this.title = title;
|
||||
this.vbox.pack_start(hbox, false, true, 10);
|
||||
content.pack_start(hbox, false, true, 10);
|
||||
this.add_button (Stock.CLOSE, ResponseType.CLOSE);
|
||||
this.destroy.connect(Gtk.main_quit);
|
||||
this.response.connect(Gtk.main_quit);
|
||||
|
|
Loading…
Reference in New Issue