Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » GTK theming a reality
Re: GTK theming a reality [message #6840 is a reply to message #6839] |
Thu, 30 November 2006 21:58 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
BTW, I am just trying to get icons, but there is strange problem:
I am getting only the sort of alpha channel (no colors and perhaps that alpha is one of channels).
Code fragments used are:
ImageDraw iw(cx + 2 * margin, cy + 2 * margin);
iw.DrawRect(0, 0, cx + 2 * margin, cy + 2 * margin, back);
static G_obj *cm = GDK().gdk_x11_colormap_foreign_new(
GDK().gdkx_visual_get(XVisualIDFromVisual(Xvisual)), Xcolormap);
G_obj *gw = GDK().gdk_pixmap_foreign_new(iw.GetDrawable());
GDK().gdk_drawable_set_colormap(gw, cm);
(above is common for painting widget elements too, so there most likely is not problem).
G_obj *b = GTK().gtk_widget_render_icon(widget, detail, state, NULL);
GDK().gdk_draw_pixbuf(gw, NULL, b, 0, 0, 0, 0, -1, -1, shadow, 0, 0);
GOBJ().g_object_unref(b);
(I am iterating state and shadow using several values to investigate the issue, all of them are just alphas...)
Any ideas?
Mirek
|
|
|
|
|
GTK theming a reality
By: mirek on Sun, 26 November 2006 01:20
|
|
|
Re: GTK theming a reality
|
|
|
Re: GTK theming a reality
By: mirek on Sun, 26 November 2006 21:33
|
|
|
Re: GTK theming a reality
By: masu on Sun, 26 November 2006 22:01
|
|
|
Re: GTK theming a reality
By: mirek on Sun, 26 November 2006 22:07
|
|
|
Re: GTK theming a reality
By: masu on Sun, 26 November 2006 22:20
|
|
|
Re: GTK theming a reality
By: mirek on Sun, 26 November 2006 23:05
|
|
|
Re: GTK theming a reality
By: masu on Sun, 26 November 2006 23:27
|
|
|
Re: GTK theming a reality
By: masu on Tue, 28 November 2006 13:56
|
|
|
Re: GTK theming a reality
By: guido on Wed, 29 November 2006 11:47
|
|
|
Re: GTK theming a reality
By: mirek on Wed, 29 November 2006 11:57
|
|
|
Re: GTK theming a reality
By: guido on Wed, 29 November 2006 20:12
|
|
|
Re: GTK theming a reality
By: mirek on Wed, 29 November 2006 20:29
|
|
|
Re: GTK theming a reality
By: guido on Thu, 30 November 2006 20:52
|
|
|
Re: GTK theming a reality
By: guido on Thu, 30 November 2006 20:58
|
|
|
Re: GTK theming a reality
By: masu on Thu, 30 November 2006 21:04
|
|
|
Re: GTK theming a reality
By: mirek on Thu, 30 November 2006 21:24
|
|
|
Re: GTK theming a reality
By: guido on Thu, 30 November 2006 21:29
|
|
|
Re: GTK theming a reality
By: masu on Thu, 30 November 2006 21:37
|
|
|
Re: GTK theming a reality
By: mirek on Thu, 30 November 2006 21:46
|
|
|
Re: GTK theming a reality
By: mirek on Thu, 30 November 2006 21:58
|
|
|
Re: GTK theming a reality
By: masu on Thu, 30 November 2006 22:45
|
|
|
Re: GTK theming a reality
By: mirek on Thu, 30 November 2006 22:50
|
|
|
Re: GTK theming a reality
By: mirek on Thu, 30 November 2006 22:54
|
|
|
Re: GTK theming a reality
By: masu on Thu, 30 November 2006 23:07
|
|
|
Re: GTK theming a reality
By: guido on Thu, 30 November 2006 21:27
|
|
|
Re: GTK theming a reality
By: mirek on Sat, 02 December 2006 10:38
|
|
|
Re: GTK theming a reality
By: masu on Sun, 03 December 2006 00:16
|
|
|
Re: GTK theming a reality
By: mirek on Sun, 03 December 2006 12:44
|
|
|
Re: GTK theming a reality
By: masu on Sun, 03 December 2006 15:17
|
|
|
Re: GTK theming a reality
By: guido on Sun, 03 December 2006 16:37
|
|
|
Re: GTK theming a reality
By: mirek on Tue, 05 December 2006 19:56
|
|
|
Re: GTK theming a reality
|
|
|
Re: GTK theming a reality
By: masu on Tue, 05 December 2006 21:27
|
|
|
Re: GTK theming a reality
|
|
|
Re: GTK theming a reality
By: masu on Tue, 05 December 2006 21:58
|
|
|
Re: GTK theming a reality
By: masu on Wed, 06 December 2006 23:02
|
Goto Forum:
Current Time: Mon May 06 17:23:28 CEST 2024
Total time taken to generate the page: 0.02842 seconds
|