cheese r629 - in branches/cheese-vala: . src



Author: jhaitsma
Date: Fri Apr  4 07:17:38 2008
New Revision: 629
URL: http://svn.gnome.org/viewvc/cheese?rev=629&view=rev

Log:
Add some more

Modified:
   branches/cheese-vala/   (props changed)
   branches/cheese-vala/src/cheese-window.vala

Modified: branches/cheese-vala/src/cheese-window.vala
==============================================================================
--- branches/cheese-vala/src/cheese-window.vala	(original)
+++ branches/cheese-vala/src/cheese-window.vala	Fri Apr  4 07:17:38 2008
@@ -211,7 +211,7 @@
 	void on_move_to_trash (Action action) {
 	}
 
-	void on_action_button (Action action) {
+	void on_action_button (Button button) {
 	}
 
 	void on_account_photo (Action action) {
@@ -273,6 +273,13 @@
 	void on_effects_button (Button button) {
 	}
 
+	void on_handle_url_link (AboutDialog about, string link) {
+
+	}
+	void on_handle_email_link (AboutDialog about, string link) {
+
+	}
+
 
 	public void setup () {
 		setup_ui ();
@@ -341,7 +348,7 @@
 
 			actions_toggle = new ActionGroup ("ActionsRadio");
 			actions_toggle.set_translation_domain (Config.GETTEXT_PACKAGE);
-			actions_toggle.add_radio_actions (action_entries_toggle, 0, (GLib.Callback)on_radio_button, this);
+			actions_toggle.add_radio_actions (action_entries_toggle, 0, (GLib.Callback)on_radio_button,this);
 			ui_manager.insert_action_group (actions_toggle, 0);
 
 			actions_effects = new ActionGroup ("ActionsEffects");
@@ -374,6 +381,11 @@
 			actions_mail.add_actions (action_entries_mail, this);
 			ui_manager.insert_action_group (actions_mail, 0);
 
+			actions_account_photo = new ActionGroup ("ActionsSetAccountPhoto");
+			actions_account_photo.set_translation_domain (Config.GETTEXT_PACKAGE);
+			actions_account_photo.add_actions (action_entries_account_photo, this);
+			ui_manager.insert_action_group (actions_account_photo, 0);
+
 			actions_fspot = new ActionGroup ("ActionsFSpot");
 			actions_fspot.set_translation_domain (Config.GETTEXT_PACKAGE);
 			actions_fspot.add_actions (action_entries_fspot, this);
@@ -389,11 +401,12 @@
 			ui_manager.add_ui_from_file (Config.PACKAGE_DATADIR + Path.DIR_SEPARATOR_S + "cheese-ui.xml");
 
 			screen.add_events (Gdk.EventMask.KEY_PRESS_MASK | Gdk.EventMask.KEY_RELEASE_MASK);
-
-			ToggleAction countdown_action = (ToggleAction)ui_manager.get_action ("/MainMenu/Cheese/CountdownToggle");
+/*
+TODO:Countdown action should action entry
+			weak ToggleAction countdown_action = (ToggleAction)ui_manager.get_action ("/MainMenu/Cheese/CountdownToggle");
 
 			countdown_action.set_active (gconf_client.get_bool (GCONF_COUNTDOWN_KEY));
-
+*/
 			Widget menubar = ui_manager.get_widget ("/MainMenu");
 			main_vbox.pack_start (menubar, false, false, 0);
 
@@ -426,7 +439,8 @@
   g_signal_connect (cheese_window->thumb_view, "button_press_event",
                     G_CALLBACK (cheese_window_button_press_event_cb), cheese_window);
 */
-
+			AboutDialog.set_email_hook (on_handle_email_link, null);
+			AboutDialog.set_url_hook (on_handle_url_link, null);
 
 			window.show_all ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]