After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 322445 - Impossible to manipulate window widget (and others) attributes once focus has been on another widget
Impossible to manipulate window widget (and others) attributes once focus has...
Status: RESOLVED OBSOLETE
Product: glade
Classification: Applications
Component: general
unspecified
Other All
: Normal minor
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-25 16:30 UTC by Frederik Hertzum
Modified: 2006-12-05 18:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frederik Hertzum 2005-11-25 16:30:36 UTC
Please describe the problem:
In Glade 3 (2.90) the attributes for a window widget does not show in the
Properties window, once another widget has been selected, and the window widget
is selected again. This means that you are forced to either create the correct
window widget from the beginning or create a new one if you make a mistake.

Steps to reproduce:
1. Fire up Glade 3
2. Create a window widget
3. Select the container area of the window widget or insert another widget and
select it
4. Re-select the window widget (use the main glade 3 window).


Actual results:
As reported the attributes of the window widget doesn't appear in the properties
window.

Expected results:
I would expect the window widget's attributes to appear in the properties window.

Does this happen every time?
This happens every time.

Other information:
Comment 1 Frederik Hertzum 2005-11-25 16:53:45 UTC
It appears that if you add another window, it works fine.
Comment 2 Tristan Van Berkom 2005-11-25 19:17:14 UTC
The expected behaviour is:

    - Create a window
      (now you should see the window properties in the editor)
    - Click on the placeholder widget inside the window
      (the property editor will clear since no widget is selected)
    - Create any widget and add it as child to the window
      (now you see the child widget's properties in the editor).

Point is that, when dealing with container widgets, usually you have
to either use right-click --> select, or use the widget tree.

exceptions are GtkFrame & GtkNotebook (or any container widget that
has screen realestate outside of its children).

Maybe a left-click on a placeholder widget should result in
the parent being selected (and shown in the editor) ?

This would no-doubt be confusing in the case of GtkBox & GtkTable...

I think that its not worth the added complexity for the yield
(this is difficult because editor focus & cut/copy/paste/delete
are all selection based features).

I'll leave this open for a bit so people have a chance to comment...
Comment 3 Frederik Hertzum 2005-11-28 03:14:17 UTC
The thing is that if you only create ONE window, it behaves one way, but if you
have two, you get a different behaviour out of glade 3.

Simply left-clicking the window will yield no result if you only have one
window. If you have two windows, you are NOT shown (and NOT able to manipulate)
all attributes for that window. The same goes with clicking the widget entry in
the main glade 3 window. As soon as you have TWO windows this behaviour is no
longer true. Instead, when ever you left-click a window (or it's entry in the
main glade 3 window), you are shown (and are able to manipulate) the attributes
of that window. This is clearly a bug.
Comment 4 Tristan Van Berkom 2005-11-28 19:07:10 UTC
I am getting the same behaviour with glade-3-2.90 & with glade3 cvs:

If I create one window; I immediatly see its properties available
in the property editor; If I left click on it (i.e. effectively selecting
the child placeholder) the properties dissapear; If I left-click on the 
"window1" item in the main project window, the properties come back up.

If I create a second window; I get the same behaviour; i.e. creating it
results in its initial selection (have props in the editor), left-clicking
on the child placeholder clears the editor; selecting any of the GtkWindows 
through either the "right-click --> window1 --> select" path or the main
project window path gets the properties back into the editor.

You said that in your setup (just trying to be more clear), 
if you have two GtkWindows in your project, left-clicking on either 
of the child placeholders results in a window being selected &
its properties displayed in the editor ?

Are we both talking about top-levels w/ placeholders here, or
are you talking about first creating a toplevel window, then
adding some other widget to it ?

This is confusing; maybe you could post the GTK+ version you
are using (although I dont see it being a factor) or any
relavent information.
Comment 5 Frederik Hertzum 2005-11-29 14:15:30 UTC
The bug disappeared... I don't know what it was, but now it seems to work 
right.

I am a bit confused as it seems to have disappaered for no reason, and also 
when I have any number of top-level windows, selecting any window (not through 
the widget selctor), it no-longer get focus in the properties editor. 
Selecting a top-level window through the widget selector (the main glade 
window), allows me to edit the properties as expected, now.
Comment 6 Tristan Van Berkom 2006-12-05 18:23:33 UTC
closing