Author: akv
Date: 2012-09-04 23:56:26 +0200 (Tue, 04 Sep 2012)
New Revision: 4279

Modified:
   trunk/src/rs-toolbox.c
Log:
Enabling calculation of curve ends - auto levels...

Modified: trunk/src/rs-toolbox.c
===================================================================
--- trunk/src/rs-toolbox.c      2012-09-04 21:55:49 UTC (rev 4278)
+++ trunk/src/rs-toolbox.c      2012-09-04 21:56:26 UTC (rev 4279)
@@ -606,7 +606,7 @@
 static void
 curve_context_callback_white_black_point(GtkMenuItem *menuitem, gpointer 
user_data)
 {
-       /* FIXME: Stub. Convert this to an action */
+  rs_curve_auto_adjust_ends(GTK_WIDGET(user_data));
 }
 
 static void
@@ -723,7 +723,7 @@
        i = gtk_menu_item_new_with_label (_("Auto adjust curve ends"));
        gtk_widget_show (i);
        gtk_menu_attach (GTK_MENU (menu), i, 0, 1, n, n+1); n++;
-       g_signal_connect (i, "activate", G_CALLBACK 
(curve_context_callback_white_black_point), NULL);
+       g_signal_connect (i, "activate", G_CALLBACK 
(curve_context_callback_white_black_point), widget);
        gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, 
GDK_CURRENT_TIME);
 }
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to