Re: deactivate "enter" signal on GtkButton

2013-11-07 Thread Sébastien Wilmet
Hi,

On Thu, Nov 07, 2013 at 08:10:50PM +0800, Mahesh Chaudhari wrote:
> which one to use if I wants my button should not glow on hovering mouse 
> pointer over the button 

It comes from the theme. It's a bad idea to stop a signal because you 
don't want the :hover effect.

Regards,
Sébastien
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: API break in GtkAction?

2013-10-08 Thread Sébastien Wilmet
On Mon, Oct 07, 2013 at 06:39:41PM -0400, Matthias Clasen wrote:
> I've just pushed a testcase (
> https://git.gnome.org/browse/gtk+/tree/tests/teststockbuttonmenu.c) that
> shows things related to stock icons, buttons, menuitems and actions working
> as I would expect them to, including gtk_action_set_always_show_image.

Thanks. With a little more investigation, what worked with GTK+ 3.8 and 
doesn't work anymore is to call gtk_action_set_always_show_image() after 
the widgets are added to their containers.

Sébastien
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


API break in GtkAction?

2013-10-07 Thread Sébastien Wilmet
Send to gtk-devel-list too.

GtkAction, GtkStock, GtkUIManager etc have been deprecated. But it 
should still be possible to use them.

On Thu, Oct 03, 2013 at 10:13:51PM +0200, Sébastien Wilmet wrote:
> Hello,
> 
> Since the deprecation of GtkUIManager, GtkAction, GtkStock etc, it seems 
> that gtk_action_set_always_show_image() doesn't work anymore.
> 
> I don't have the time to port my application to GMenu (and I think some 
> features are missing, that I use with GtkUIManager). And I need icons in 
> menus. For example some menu items permit to insert international 
> accents. The image is really useful to know which accent it is.
> 
> To enable icons in menus, I use this code (in Vala):
> 
> foreach (Gtk.ActionGroup action_group in ui_manager.get_action_groups ())
> {
> foreach (Gtk.Action action in action_group.list_actions ())
> {
> action.set_always_show_image (true);
> }
> }
> 
> It works fine with GTK+ 3.8, but not with GTK+ 3.10.
> 
> I openened this bug:
> https://bugzilla.gnome.org/show_bug.cgi?id=708651
> 
> I hope this is not intentional (which means it is an API break, without 
> .so version bump…).
> 
> And, if it is intentional, is there another easy way to force to show 
> icons in menus? (Without lots of manual code, I mean, because the menu 
> is big).
> 
> Thanks in advance,
> Sébastien
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Icon/image in menu with GtkUIManager and GtkAction in GTK+ 3.10

2013-10-03 Thread Sébastien Wilmet
Hello,

Since the deprecation of GtkUIManager, GtkAction, GtkStock etc, it seems 
that gtk_action_set_always_show_image() doesn't work anymore.

I don't have the time to port my application to GMenu (and I think some 
features are missing, that I use with GtkUIManager). And I need icons in 
menus. For example some menu items permit to insert international 
accents. The image is really useful to know which accent it is.

To enable icons in menus, I use this code (in Vala):

foreach (Gtk.ActionGroup action_group in ui_manager.get_action_groups ())
{
foreach (Gtk.Action action in action_group.list_actions ())
{
action.set_always_show_image (true);
}
}

It works fine with GTK+ 3.8, but not with GTK+ 3.10.

I openened this bug:
https://bugzilla.gnome.org/show_bug.cgi?id=708651

I hope this is not intentional (which means it is an API break, without 
.so version bump…).

And, if it is intentional, is there another easy way to force to show 
icons in menus? (Without lots of manual code, I mean, because the menu 
is big).

Thanks in advance,
Sébastien
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list