[Rawstudio-commit] r1679 - trunk/src

Anders Kvist anders at kvistmail.dk
Thu Mar 20 21:56:13 CET 2008


Author: akv
Date: 2008-03-20 21:56:13 +0100 (Thu, 20 Mar 2008)
New Revision: 1679

Modified:
   trunk/src/rs-actions.c
   trunk/src/ui.xml
Log:
Added grouping ... again :)

Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c	2008-03-20 19:00:21 UTC (rev 1678)
+++ trunk/src/rs-actions.c	2008-03-20 20:56:13 UTC (rev 1679)
@@ -527,6 +527,18 @@
 	rs_preview_widget_unstraighten(RS_PREVIEW_WIDGET(rs->preview));
 }
 
+#ifdef EXPERIMENTAL
+ACTION(group_photos)
+{
+	rs_store_group_photos(rs->store);
+}
+
+ACTION(ungroup_photos)
+{
+	rs_store_ungroup_photos(rs->store);
+}
+#endif
+
 ACTION(previous_photo)
 {
 	gchar *current_filename = NULL;
@@ -799,6 +811,8 @@
 	{ "Uncrop", NULL, _("_Uncrop"), "<shift>V", NULL, ACTION_CB(uncrop) },
 	{ "Straighten", NULL, _("_Straighten"), NULL, NULL, ACTION_CB(straighten) },
 	{ "Unstraighten", NULL, _("_Unstraighten"), NULL, NULL, ACTION_CB(unstraighten) },
+	{ "Group", NULL, _("_Group"), NULL, NULL, ACTION_CB(group_photos) },
+	{ "Ungroup", NULL, _("_Ungroup"), NULL, NULL, ACTION_CB(ungroup_photos) },
 
 	/* View menu */
 	{ "PreviousPhoto", GTK_STOCK_GO_BACK, _("_Previous photo"), "<control>Left", NULL, ACTION_CB(previous_photo) },

Modified: trunk/src/ui.xml
===================================================================
--- trunk/src/ui.xml	2008-03-20 19:00:21 UTC (rev 1678)
+++ trunk/src/ui.xml	2008-03-20 20:56:13 UTC (rev 1679)
@@ -32,6 +32,8 @@
    <menuitem action="Uncrop" />
    <menuitem action="Straighten" />
    <menuitem action="Unstraighten" />
+   <menuitem action="Group" />
+   <menuitem action="Ungroup" />
   </menu>
   <menu action="ViewMenu">
    <menuitem action="PreviousPhoto" />




More information about the Rawstudio-commit mailing list