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 325882 - [KB-Fixed] Enforce send/receive mail dialog window position
[KB-Fixed] Enforce send/receive mail dialog window position
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.8.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[kill-bonobo]
: 339783 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-01-05 15:57 UTC by Christian Neumair
Modified: 2009-08-30 05:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (17.69 KB, patch)
2007-06-11 19:29 UTC, Milan Crha
committed Details | Review
e-passwords.c (653 bytes, patch)
2008-04-30 15:31 UTC, Matthew Barnes
committed Details | Review

Description Christian Neumair 2006-01-05 15:57:51 UTC
Neither the password query nor the send/receive mail dialog set position hints. Thus, Metacity often puts them in random positions.

Calling

gtk_window_set_transient_for (dialog, window);
gtk_window_set_position (dialog, GTK_WIN_POS_CENTER_ON_PARENT);

before the dialog is mapped should be enough.

Maybe sb. should go through all the dialogs and check whether they have position hints set.
Comment 1 Alejandro Andrés 2006-04-08 06:23:42 UTC
Won't do it changing this lines?:
i.e. in mail-dialogs.glade:
  <property name="window_position">GTK_WIN_POS_NONE</property>
  to
  <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>

instead of gtk_window_set*, I mean.
Comment 2 André Klapper 2006-07-26 13:44:10 UTC
srini, a nosip task i guess?
Comment 3 André Klapper 2006-08-29 13:31:21 UTC
*** Bug 339783 has been marked as a duplicate of this bug. ***
Comment 4 Milan Crha 2007-06-11 19:29:49 UTC
Created attachment 89766 [details] [review]
proposed patch

for evolution;

I changed GTK_WIN_POS_NONE to GTK_WIN_POS_CENTER_ON_PARENT but only there, where was no "gravity" property.
Comment 5 Srinivasa Ragavan 2007-06-15 06:11:11 UTC
The patch looks fine. But Im not sure, if we need to patch designs/. It is not compiled and it was for design/discussion and I don't know much about it. I don't think this fixes either password or send/receive. But a good amount of dialogs look neat.
Comment 6 Srinivasa Ragavan 2007-06-18 05:07:40 UTC
Committed.
Comment 7 Matthew Barnes 2008-03-11 00:28:41 UTC
Bumping version to a stable release.
Comment 8 Matthew Barnes 2008-04-30 15:31:04 UTC
Created attachment 110168 [details] [review]
e-passwords.c

Here's a patch for the password dialog.  It relies on the caller to provide the parent window, which Evolution can't always do.  (Note, passing a NULL parent to gtk_window_set_transient_for() is acceptable.)

This is more difficult for the Send/Receive dialog because the mail component doesn't have easy access to the main (parent) window, thanks to Bonobo.  In fact this is the case for many dialogs in Evolution.
Comment 9 Srinivasa Ragavan 2008-05-05 04:59:15 UTC
COmmit to stable/trunk
Comment 10 Matthew Barnes 2008-05-05 15:15:59 UTC
Committed to trunk (revision 8736) and gnome-2-22 (revision 8737).

Adjusting summary for the remaining issue and leaving open until we give Bonobo the boot, or find a workaround.
Comment 11 Matthew Barnes 2009-05-03 02:43:20 UTC
Fixed now on the kill-bonobo branch.
Comment 12 Matthew Barnes 2009-08-30 05:53:38 UTC
The "kill-bonobo" branch has been merged into "master" and will debut as Evolution 2.29.1.  We believe the branch has addressed the reported issue.  If you find the issue still exists in version 2.29 or later please feel free to re-open this bug.

Closing as FIXED.