Making a Gtk::Entry go away automatically
- From: Marcus Lundblad <ml Update UU SE>
- To: gtkmm-list gnome org
- Subject: Making a Gtk::Entry go away automatically
- Date: Mon, 29 Aug 2005 20:48:19 +0200 (CEST)
I have a Gtk::Label that when right-clicked opens a context menu.
One of the options in the menu is "rename", when this is invoked it's
intended that the label "turns" into a text entry field where one can
change the label and when pressing enter or clicked it changes the label.
When selecting "rename" the label is replaced with the entry (this part
works).
So I tried connecting the on_change signal for the entry field to make it
set the text of the label. However, when using this, the text entry
reports as soon as a character is typed. This is not what I intend.
So, I guess I should be using some other signal.
What I would like is "signal_enter" and "signal_leave" (if those exists).
I couldn't find an example that does this.
What I want is essentually something similar to "rename" in Nautilus.
//Marcus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]