[cheese/three-point-oh: 11/12] Added handler for Help Contents
- From: Yuvaraj Pandian <yuvipanda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/three-point-oh: 11/12] Added handler for Help Contents
- Date: Thu, 27 May 2010 10:20:31 +0000 (UTC)
commit 8fbc453dae36fd1bed058302b9e2bf2240248373
Author: Yuvaraj Pandian T <yuvipanda gmail com>
Date: Thu May 27 15:27:20 2010 +0530
Added handler for Help Contents
valasrc/cheese-window.vala | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/valasrc/cheese-window.vala b/valasrc/cheese-window.vala
index 8e0c158..fc5d19d 100644
--- a/valasrc/cheese-window.vala
+++ b/valasrc/cheese-window.vala
@@ -1,11 +1,21 @@
using Gtk;
+using Gdk;
-public class Cheese.MainWindow : Window {
+public class Cheese.MainWindow : Gtk.Window {
[CCode (instance_pos = -1)]
internal void on_quit (Action action ) {
destroy();
}
+
+
+ [CCode (instance_pos = -1)]
+ internal void on_help_contents (Action action ) {
+ Gdk.Screen screen;
+ screen = this.get_screen();
+ Gtk.show_uri(screen, "ghelp:cheese", Gtk.get_current_event_time());
+ }
+
public void setup_ui () {
Builder builder = new Builder();
@@ -15,7 +25,7 @@ public class Cheese.MainWindow : Window {
main_vbox = (VBox) builder.get_object ("mainbox_normal");
- add(main_vbox);
+ this.add(main_vbox);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]