GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Nov 01, 2014 9:06 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Problem while adjusting GtkWindow. (Gtk + C)
PostPosted: Tue Dec 15, 2009 8:28 am 
Offline
GTK+ Geek

Joined: Mon Jul 27, 2009 6:38 am
Posts: 91
I am having a Gtk+ and C Application with one window.
My desktop screen is divided into two sections.
[code=]
+--------------------------------+-------+
|Task Bar | Icons |
+--------------------------------+-+-----+
| | S |
| | E |
| Section 1 | C |
| | T |
| | I |
| | O |
| | N |
| | 2 |
| | |
+----------------------------------+-----+ [/code]

Divider in between two screens is an re-sizer line.

I want to display my Gtk Top Level window in Section 2. when user click on my system try icon i want to display my gtk main window in section 2 I tried to move my gtk window to that section by giving x, y co-ordinates but it does not work.

I am having Gtk+ C Pidgin application installed on my linux machine, when i click on Pidgin system tray icon it displays it's main window in Section 2 of the screen.

How can i do the same stuff that Pidgin is doing?

Thanks,
PP.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 15, 2009 8:36 am 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hello.

I don't think Pidgin is doing anything special here. As far as I can remember, Pidgin windows pop-up on the same spot they were before the hiding. I'm also not sure about the sections you shown. What window manager are you using? What properties do those sections have?

Tadej


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 15, 2009 9:44 am 
Offline
GTK+ Geek

Joined: Mon Jul 27, 2009 6:38 am
Posts: 91
there are now specific properties.. Section 2 is like an Application Minimize area when we click on minimize button it goes in to section 2 with small screen. There can be only one application/window opened in Section 1 of the screen if you try to open other application (like Terminal) preciously opened application will be minimized in section 2. Section one is single Window Area.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 15, 2009 9:54 am 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hi.

Is this part of GNOME Shell? I don't use GNOME and am not familiar with latest developments there.

Tadej


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 15, 2009 10:40 am 
Offline
GTK+ Geek

Joined: Mon Jul 27, 2009 6:38 am
Posts: 91
no it is not part of "GNOME Shell".


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 15, 2009 11:09 am 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hi.

Are you restoring your window state when reshowing? For example, if you window has been minimized when being hidden, do you restore the same minimized state on show? This is the only things that comes to mind when re-reading your post.

Tadej


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group