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



Author: jhaitsma
Date: Fri Apr 11 19:03:22 2008
New Revision: 640
URL: http://svn.gnome.org/viewvc/cheese?rev=640&view=rev

Log:
Start with cheese-thumb-view

Added:
   branches/cheese-vala/src/cheese-thumb-view.vala
Modified:
   branches/cheese-vala/   (props changed)
   branches/cheese-vala/src/Makefile.am
   branches/cheese-vala/src/cheese-window.vala
   branches/cheese-vala/src/cheese.vala

Modified: branches/cheese-vala/src/Makefile.am
==============================================================================
--- branches/cheese-vala/src/Makefile.am	(original)
+++ branches/cheese-vala/src/Makefile.am	Fri Apr 11 19:03:22 2008
@@ -6,7 +6,8 @@
 	--pkg gdk-2.0 \
 	--pkg gtk+-2.0 \
 	--pkg gstreamer-0.10 \
-	--pkg gconf-2.0
+	--pkg gconf-2.0 \
+	--pkg gio-2.0
 	
 AM_CPPFLAGS = \
 	-DBINDIR=\"$(bindir)\"			 	\
@@ -25,7 +26,8 @@
 
 cheese_VALASOURCES = \
 	cheese.vala \
-	cheese-window.vala
+	cheese-window.vala \
+	cheese-thumb-view.vala
 
 cheese_SOURCES = \
 	$(cheese_VALASOURCES:.vala=.c) \

Added: branches/cheese-vala/src/cheese-thumb-view.vala
==============================================================================
--- (empty file)
+++ branches/cheese-vala/src/cheese-thumb-view.vala	Fri Apr 11 19:03:22 2008
@@ -0,0 +1,38 @@
+/* cheese-thumb-view.vala 
+ *
+ * Copyright (C) 2007,2008 daniel g. siegel <dgsiegel gmail com>
+ * Copyright (C) 2007,2008 Jaap Haitsma <jaap haitsma org>
+ *
+ * Licensed under the GNU General Public License Version 2
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+using GLib;
+using Gtk;
+using Gdk;
+
+public class Cheese.ThumbView : IconView {
+	ListStore store;
+	FileMonitor file_monitor;
+
+	const int THUMB_VIEW_HEIGHT = 120;
+
+
+	construct {
+		store = new ListStore (2, typeof (Pixbuf), typeof (string));
+		set_model (store);
+		set_size_request (-1, THUMB_VIEW_HEIGHT);
+	} 
+}

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 11 19:03:22 2008
@@ -24,8 +24,6 @@
 
 public class Cheese.CheeseWindow : Builder {
 
-
-
 	const string[] authors = {
 		"daniel g. siegel <dgsiegel gmail com>",
 		"Jaap A. Haitsma <jaap haitsma org>",

Modified: branches/cheese-vala/src/cheese.vala
==============================================================================
--- branches/cheese-vala/src/cheese.vala	(original)
+++ branches/cheese-vala/src/cheese.vala	Fri Apr 11 19:03:22 2008
@@ -76,6 +76,4 @@
 		Gdk.threads_leave ();
 		return 0;
 	}
-
-
 }



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