Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » multiple top level windows?? [RSS Feed]

#1 Nov. 7, 2005 16:52:52

Andrew S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

multiple top level windows??


I want to have multiple sections of a UI that aren't contiguous on the
screen but maintain the same spatial relationship to each other if they
are moved.

My plan is to have multiple top level windows without decorations which
move() with each other.

Has anyone done something similar? any tips with this approach or is
there some other a method to recommend?

Thanks

Andrew Shafer



_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#2 Nov. 7, 2005 17:58:58

Tristan V.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

multiple top level windows??


Andrew Shafer wrote:
Has anyone done something similar? any tips with this approach or is
there some other a method to recommend?I've used gtk_window_move() to "remember" where a window was
when hiding / showing it, I guess it should work nicely
when used to move them "realtime".

Cheers,
-Tristan
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#3 Nov. 15, 2005 16:40:31

Jose H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

multiple top level windows??


I have been fighting with this:

I need to create text tables in a program, so I use gtk_text_view*,
gtk_text_buffer* functions. When created, tables look inconsistent
because the "blank space" between words is not the same space that a
letter space.
Looking at Abiword, it has the same problem, but gvim and gedit not.

Could I get rid of this behaviour with this functions or I need a lower
level approach to the problem?

Jose Hevia


_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#4 Nov. 15, 2005 16:53:16

John C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

multiple top level windows??


On 11/15/05, Jose Hevia <> wrote:
> I need to create text tables in a program, so I use gtk_text_view*,
> gtk_text_buffer* functions. When created, tables look inconsistent
> because the "blank space" between words is not the same space that a
> letter space.

Sounds like you need a monospaced font. Try:

text = gtk_text_view_new();
font_desc = pango_font_description_from_string( "Mono" );
gtk_widget_modify_font( text, font_desc );
pango_font_description_free( font_desc );

J
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#5 Nov. 15, 2005 21:39:44

Jose H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

multiple top level windows??


> On 11/15/05, Jose Hevia <> wrote:
> > I need to create text tables in a program, so I use gtk_text_view*,
> > gtk_text_buffer* functions. When created, tables look inconsistent
> > because the "blank space" between words is not the same space that a
> > letter space.
>
> Sounds like you need a monospaced font. Try:
>
> text = gtk_text_view_new();
> font_desc = pango_font_description_from_string( "Mono" );
> gtk_widget_modify_font( text, font_desc );
> pango_font_description_free( font_desc );

Thanks!!, IT works!!
Jose Hevia



_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

  • Root
  • » GTK+
  • » multiple top level windows?? [RSS Feed]

Board footer

Moderator control

Enjoy the 18th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support