fix C-level warnings

master
Sebastian Reichel 2012-01-17 16:29:16 +01:00
parent ebacb74f5b
commit eace35174c
2 changed files with 5 additions and 2 deletions

View File

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

View File

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