Hi,
I just notice the knots in the curve editor have now (svn2052) an
increased size, things should be easier.

Here is a patch (hum, better call it a hack) for the sliders.
I do not guarantee everything works, but I don't have time enough to
investigate further.

Regards,
Ille

PS: maybe it's not the right place to send a patch. Please let me know.
Thanks.


Le Mon, 29 Sep 2008 18:32:10 -0400,
oleksandr korneta <[EMAIL PROTECTED]> a écrit :

> If you are asking me -- I would love to see those things fixed. 
> Unfortunately, my programming skills are not sufficient yet to make 
> those changes.
> 
> thanks
> 
> 
--- rawstudio-svn2052/src/toolbox.c	2008-09-29 04:15:03.000000000 +0200
+++ rawstudio-svn1948/src/toolbox.c	2008-08-03 11:59:19.000000000 +0200
@@ -196,7 +195,7 @@
 static GtkWidget *
 gui_make_scale_from_adj(RS_BLOB *rs, GCallback cb, GtkObject *adj, gint mask)
 {
-	GtkWidget *hscale, *box, *rimage, *revent;
+  GtkWidget *hscale, *box, *rimage, *revent, *spin;
 	struct cb_carrier *rc = g_malloc(sizeof(struct cb_carrier));
 	rc->rs = rs;
 	rc->mask = mask;
@@ -208,6 +207,13 @@
 	gtk_scale_set_value_pos( GTK_SCALE(hscale), GTK_POS_LEFT);
 	gtk_scale_set_digits(GTK_SCALE(hscale), 2);
 
+
+	/* or the spin_button, we will need a callback to bind it to the
+	   hscale so that changes get reflected by the other. Should I use
+	   the same adj? */
+	spin=gtk_spin_button_new((GtkAdjustment *)adj,0.01,2);
+	gtk_widget_set_size_request(spin,60,25);
+/* 	g_signal_connect(); */
 	rimage = gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_MENU);
 
 	revent = gtk_event_box_new();
@@ -219,7 +225,8 @@
 		G_CALLBACK (gui_adj_reset_callback), rc);
 
 	gtk_box_pack_start (GTK_BOX (box), hscale, TRUE, TRUE, 0);
-	gtk_box_pack_start (GTK_BOX (box), revent, FALSE, TRUE, 0);
+	gtk_box_pack_start (GTK_BOX (box), spin, FALSE, FALSE, 2);
+	gtk_box_pack_start (GTK_BOX (box), revent, FALSE, TRUE, 2);
 
 	return(box);
 }
_______________________________________________
Rawstudio-dev mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev

Reply via email to