You are not logged in.
Hey, I'm looking for the GTK Mist engine source. GTK engine source code seems to be really hard to find in general, and none of my searches are giving me much luck... I -did- find some source code for what appeared to be the Mist engine on launchpad.net, but it seemed to be from an older version or something since THAT Mist engine and the one I have had just about 1.8 bazillion differences.
"Why?"... Well, what I basically want to do is grab the source and completely destroy the draw_focus() function so I don't get an annoying focus ring on any given active (focused) control. Yes, it's partly a Winfailure-ism, but I still consider no focus ring to give a more professional finish, and since I mentally track the focused widget as well there's no real need for a visual reminder that only annoys me anyway.
-dav7
Last edited by dav7 (2008-05-04 20:22:07)
Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.
Offline
Look at the PKGBUILD....
Offline
Hah, thanks.
Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.
Offline
<font size="93274562978562347">YAY!!!!</font>
I actually do that... shout "Y A Y ! ! (sorry.)" when something like this happens
Here's how to achieve the effect yourself if you want to:
Add this
static void
mist_style_draw_focus (GtkStyle *style,
GdkWindow *window,
GtkStateType state_type,
GdkRectangle *area,
GtkWidget *widget,
const char *detail,
int x,
int y,
const char *string)
{
}
somewhere in mist-style.c, then alter the
static void
mist_style_class_init (MistStyleClass *klass)
{
GtkStyleClass *style_class = GTK_STYLE_CLASS (klass);
mist_parent_style_class = g_type_class_peek_parent (klass);
style_class->realize = mist_style_realize;
style_class->draw_hline = mist_style_draw_hline;
style_class->draw_vline = mist_style_draw_vline;
section to (at the bottom) read
style_class->draw_layout = mist_style_draw_layout;
style_class->render_icon = mist_style_render_icon;
style_class->draw_focus = mist_style_draw_focus;
}
Then (re)compile (ensure you use ./configure --prefix=/usr, you may wish to use ./configure --prefix=/usr --disable-clearlooks --disable-crux --disable-hc --disable-industrial --disable-smooth --disable-glide --disable-thinice --disable-redmond) and make install.
If you have Mist running, switch to another random theme then switch back, although I recommend you switch to the random theme BEFORE the recompile to avoid (slightly) possible segfaults etc.
-dav7
Last edited by dav7 (2008-05-04 20:29:21)
Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.
Offline