Hi all,
We've just received a patch by Adam Strzelecki that improves Inkscape on OSX, and will probably enable us to make a native experimental build for 0.46. Part of the patch is not directly OS X related and suggests to remove some stuff from toolbox.cpp. In Adam's words:
* src/widgets/toolbox.cpp: removes tb_s, tb_e spacers from the toolbars to they DON'T have ugly underlines (who did invent this anyway, this produces ugly look in most GTK themes where toolbars are 2x inset in the GUI, I believe this should be removed anyway in all builds (platforms))
and the part of the patch is:
Index: src/widgets/toolbox.cpp =================================================================== --- src/widgets/toolbox.cpp (revision 16998) +++ src/widgets/toolbox.cpp (working copy) @@ -630,14 +630,9 @@ { GtkWidget *tb = gtk_vbox_new(FALSE, 0);
- GtkWidget *tb_s = gtk_vbox_new(FALSE, 0); - GtkWidget *tb_e = gtk_vbox_new(FALSE, 0); gtk_box_set_spacing(GTK_BOX(tb), AUX_SPACING); - gtk_box_pack_start(GTK_BOX(tb), GTK_WIDGET(tb_s), FALSE, FALSE, 0); - gtk_box_pack_end(GTK_BOX(tb), GTK_WIDGET(tb_e), FALSE, FALSE, 0);
g_object_set_data(G_OBJECT(tb), "desktop", NULL); - g_object_set_data(G_OBJECT(tb), "top_spacer", tb_s);
gtk_widget_set_sensitive(tb, FALSE);
@@ -667,11 +662,7 @@ { GtkWidget *tb = gtk_vbox_new(FALSE, 0);
- GtkWidget *tb_s = gtk_vbox_new(FALSE, 0); - GtkWidget *tb_e = gtk_vbox_new(FALSE, 0); gtk_box_set_spacing(GTK_BOX(tb), AUX_SPACING); - gtk_box_pack_start(GTK_BOX(tb), GTK_WIDGET(tb_s), FALSE, FALSE, 0); - gtk_box_pack_end(GTK_BOX(tb), GTK_WIDGET(tb_e), FALSE, FALSE, 0);
g_object_set_data(G_OBJECT(tb), "desktop", NULL); gtk_widget_set_sensitive(tb, FALSE); @@ -1439,10 +1430,6 @@ } gtk_widget_show(toolbox);
- // need to show the spacer, or the padding will be off - GtkWidget *spacer = GTK_WIDGET(g_object_get_data(G_OBJECT(toolbox), "top_spacer")); - gtk_widget_show(spacer); - gtk_widget_show_all(shown_toolbox); }
I have no clue about this. Is it safe? Should it be removed or not? Should it do it now or wait after the release?
JiHO --- http://jo.irisson.free.fr/
On Fri, Jan 11, 2008 at 12:20:38AM +0100, jiho wrote:
Hi all,
We've just received a patch by Adam Strzelecki that improves Inkscape on OSX, and will probably enable us to make a native experimental build for 0.46. Part of the patch is not directly OS X related and suggests to remove some stuff from toolbox.cpp. In Adam's words:
jiho, the patch seems to be strictly cosmetic, and doesn't look like it'd be required for the OSX port. I'd say exclude it until after the release.
Bryce
- src/widgets/toolbox.cpp: removes tb_s, tb_e spacers from the
toolbars to they DON'T have ugly underlines (who did invent this anyway, this produces ugly look in most GTK themes where toolbars are 2x inset in the GUI, I believe this should be removed anyway in all builds (platforms))
and the part of the patch is:
Index: src/widgets/toolbox.cpp
--- src/widgets/toolbox.cpp (revision 16998) +++ src/widgets/toolbox.cpp (working copy) @@ -630,14 +630,9 @@ { GtkWidget *tb = gtk_vbox_new(FALSE, 0);
GtkWidget *tb_s = gtk_vbox_new(FALSE, 0);
GtkWidget *tb_e = gtk_vbox_new(FALSE, 0); gtk_box_set_spacing(GTK_BOX(tb), AUX_SPACING);
gtk_box_pack_start(GTK_BOX(tb), GTK_WIDGET(tb_s), FALSE, FALSE, 0);
gtk_box_pack_end(GTK_BOX(tb), GTK_WIDGET(tb_e), FALSE, FALSE, 0);
g_object_set_data(G_OBJECT(tb), "desktop", NULL);
g_object_set_data(G_OBJECT(tb), "top_spacer", tb_s);
gtk_widget_set_sensitive(tb, FALSE);
@@ -667,11 +662,7 @@ { GtkWidget *tb = gtk_vbox_new(FALSE, 0);
GtkWidget *tb_s = gtk_vbox_new(FALSE, 0);
GtkWidget *tb_e = gtk_vbox_new(FALSE, 0); gtk_box_set_spacing(GTK_BOX(tb), AUX_SPACING);
gtk_box_pack_start(GTK_BOX(tb), GTK_WIDGET(tb_s), FALSE, FALSE, 0);
gtk_box_pack_end(GTK_BOX(tb), GTK_WIDGET(tb_e), FALSE, FALSE, 0);
g_object_set_data(G_OBJECT(tb), "desktop", NULL); gtk_widget_set_sensitive(tb, FALSE);
@@ -1439,10 +1430,6 @@ } gtk_widget_show(toolbox);
- // need to show the spacer, or the padding will be off
- GtkWidget *spacer =
GTK_WIDGET(g_object_get_data(G_OBJECT(toolbox), "top_spacer"));
- gtk_widget_show(spacer);
}gtk_widget_show_all(shown_toolbox);
I have no clue about this. Is it safe? Should it be removed or not? Should it do it now or wait after the release?
JiHO
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On Jan 10, 2008 7:46 PM, Bryce Harrington <bryce@...961...> wrote:
jiho, the patch seems to be strictly cosmetic, and doesn't look like it'd be required for the OSX port. I'd say exclude it until after the release.
I tested this part of the patch and I like the result. It was so long ago that these spacers were added for some now-forgotten reason, and now it really looks better without them, or at least not worse. It also saves about 10 pixels of vertical space which is worthy these days. So I committed this part of the patch as well.
Hi there,
jiho, the patch seems to be strictly cosmetic, and doesn't look like it'd be required for the OSX port. I'd say exclude it until after the release.
I tested this part of the patch and I like the result. It was so long ago that these spacers were added for some now-forgotten reason, and now it really looks better without them, or at least not worse. It also saves about 10 pixels of vertical space which is worthy these days. So I committed this part of the patch as well.
Wow that's pretty amazing how fast you deal with Inkscape code changes and improvements propositions. All I can say is thanks!
This patch wont't change anything for everybody who's using GTK themes with flat (border-less) toolbars (except gaining those 10 pixels ;P), however if you use the theme like: http://www.inkscape.org/screenshots/gallery/inkscape-0.46-01-angled_guidelin... you can see the toolbar gets outset twice, which looks basically very nasty also with OSX theme (Leopardish) I used. So the whole concept of making OSX port IMHO is too provide native OSX Quartz GTK application that will preserve as much as possible of OSX look & feel using GTK library -> which implies some cosmetic changes, just to make any Mac user to not feel the difference when using Inkscape.
Cheers!,
participants (4)
-
Adam Strzelecki
-
Bryce Harrington
-
bulia byak
-
jiho