From 2aa7c0079c494c303cc8791768520286e666c339 Mon Sep 17 00:00:00 2001 From: Lennart Weller Date: Mon, 28 Feb 2011 10:23:19 +0100 Subject: [PATCH] fixed deprecates --- src/ConfigWindow.vala | 4 ++-- src/ControlBar.vala | 6 +++--- src/ControlWindow.vala | 4 ++-- src/ErrorDialog.vala | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ConfigWindow.vala b/src/ConfigWindow.vala index d6bd595..818ad22 100644 --- a/src/ConfigWindow.vala +++ b/src/ConfigWindow.vala @@ -49,8 +49,8 @@ class ConfigWindow : Dialog { // FIXME: add keybindings - add_button(STOCK_OK, ResponseType.OK); - add_button(STOCK_CANCEL, ResponseType.CANCEL); + add_button(Stock.OK, ResponseType.OK); + add_button(Stock.CANCEL, ResponseType.CANCEL); response.connect(response_handler); show_all(); diff --git a/src/ControlBar.vala b/src/ControlBar.vala index 4033922..9b2c1b5 100644 --- a/src/ControlBar.vala +++ b/src/ControlBar.vala @@ -48,11 +48,11 @@ class ControlToolbar : Toolbar { pages = n_pages; /* Init Toolbar Elements */ - prev = new ToolButton.from_stock(STOCK_GO_BACK); + prev = new ToolButton.from_stock(Stock.GO_BACK); entry = new Entry(); entry.set_width_chars(3); - next = new ToolButton.from_stock(STOCK_GO_FORWARD); - config = new ToolButton.from_stock(STOCK_PREFERENCES); + next = new ToolButton.from_stock(Stock.GO_FORWARD); + config = new ToolButton.from_stock(Stock.PREFERENCES); curr_time = new Label("Time"); pres_time = new Label("Duration"); pres_time.set_markup("Duration"); diff --git a/src/ControlWindow.vala b/src/ControlWindow.vala index 5031216..2d87f82 100644 --- a/src/ControlWindow.vala +++ b/src/ControlWindow.vala @@ -71,7 +71,7 @@ class ControlView : DrawingArea { height = (int) height2; Gtk.Allocation rect = Gtk.Allocation(); - get_allocation(rect); + get_allocation(out rect); window_w = rect.width; window_h = rect.height; @@ -99,7 +99,7 @@ class ControlView : DrawingArea { int w,h; Gtk.Allocation rect = Gtk.Allocation(); - get_allocation(rect); + get_allocation(out rect); w = rect.width; h = rect.height; diff --git a/src/ErrorDialog.vala b/src/ErrorDialog.vala index 38275f0..5f19b29 100644 --- a/src/ErrorDialog.vala +++ b/src/ErrorDialog.vala @@ -28,14 +28,14 @@ class ErrorDialog : Dialog { public ErrorDialog(string title, string message) { var label = new Label(message); var hbox = new HBox(false, 0); - var img = new Image.from_stock(STOCK_DIALOG_ERROR, IconSize.DIALOG); + var img = new Image.from_stock(Stock.DIALOG_ERROR, IconSize.DIALOG); 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); - this.add_button (STOCK_CLOSE, ResponseType.CLOSE); + this.add_button (Stock.CLOSE, ResponseType.CLOSE); this.destroy.connect(Gtk.main_quit); this.response.connect(Gtk.main_quit); this.show_all();