Re: cursor position in filename entry of gtkfilechooserdialog

2012-02-03 Thread Emmanuel Thomas-Maurin
On 02/03/2012 01:17 AM, Ferdinand Ramirez wrote:
 --- On Thu, 2/2/12, Emmanuel Thomas-Maurin manutm...@gmail.com wrote:
 
 I think you may use something like:
 gtk_editable_set_position(GTK_EDITABLE(entry), -1)

 
 The problem is that I don't seem to have access to location_entry in 
 GtkFileChooser for me to use the above function. Do you know how I can get 
 hold of location_entry? I believe location_entry is the GtkEntry object and I 
 need a handle to that.

It doesn't seem easy. Maybe with
gtk_container_forall(GTK_CONTAINER(file_chooser)) as location_entry is
considered internal?

-- 
Emmanuel Thomas-Maurin manutm...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


TreeView tooltip use immediate control

2012-02-03 Thread Stefan Salewski
I have an application which use many TreeView widgets (see
http://www.ssalewski.de/PetEd.html.en). I use set_tooltip_column() to
activate tooltips at program start when widgets are created.

How can I immediately activate or deactivate tooltips for all TreeView
widgets on user action, i.e. menu operation. It should not be necessary
to terminate and restart the program.

Of course I can use a list of all TreeView widgets for accessing all and
use set_tooltip_column()...

But I guess I should solve this problem by using events? Which GTK event
is best used for this modification? Or should I emit an event myself,
when user wants to toggle tooltip display? I have no idea currently.

Thanks,

Stefan Salewski


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: TreeView tooltip use immediate control

2012-02-03 Thread David Nečas
On Fri, Feb 03, 2012 at 11:36:13PM +0100, Stefan Salewski wrote:
 How can I immediately activate or deactivate tooltips for all TreeView
 widgets on user action, i.e. menu operation.

You can enable/disable all tooltips using the gtk-enable-tooltips
GtkSettings property.

But if you want to enable/disable them just for some specific of widgets
you have to handle it yourself.  The easiest method is probably making
the widgets query your enable/disable setting in their query-tooltip
signal handlers – and then return TRUE or FALSE from the handlers.

Yeti

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: TreeView tooltip use immediate control

2012-02-03 Thread Stefan Salewski
On Sat, 2012-02-04 at 00:01 +0100, David Nečas wrote:
 On Fri, Feb 03, 2012 at 11:36:13PM +0100, Stefan Salewski wrote:
  How can I immediately activate or deactivate tooltips for all TreeView
  widgets on user action, i.e. menu operation.
 
 You can enable/disable all tooltips using the gtk-enable-tooltips
 GtkSettings property.
 

I guess this works on all applications of the Gnome/GTK desktop?
Maybe not what the user wants...

 But if you want to enable/disable them just for some specific of widgets
 you have to handle it yourself.  The easiest method is probably making
 the widgets query your enable/disable setting in their query-tooltip
 signal handlers – and then return TRUE or FALSE from the handlers.
 
 Yeti

Thanks, this sounds good. I was not aware that this query-tooltip
handler is involved at all when I only use a simple
gtk_tree_view_set_tooltip_column()
(http://developer.gnome.org/gtk3/stable/GtkTreeView.html#gtk-tree-view-set-tooltip-column)

I will test it.

Best reagards,

Stefan Salewski


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list