Re: HELP/About was :: [Re: suggestions on user config?]

2012-02-19 Thread Tadej Borovšak
Hi

        the dialoh has a Close button in the lower right.  In the
        lower left are two buttons.  one is labeled Credits; next
        to it is a button labeled License that displays the GNU
        copyright.  can somebody clue  me in on how to add the two
        buttons  s on the lower left?

I don't have GNOME installed here, but my guess would be that you're
looking at the stock GtkAboutDialog, which is part of the GTK+.

Cheers,
Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: HELP/About was :: [Re: suggestions on user config?]

2012-02-19 Thread Michael Torrie
On 02/19/2012 06:38 AM, Tadej Borovšak wrote:
 Hi
 
the dialoh has a Close button in the lower right.  In the
lower left are two buttons.  one is labeled Credits; next
to it is a button labeled License that displays the GNU
copyright.  can somebody clue  me in on how to add the two
buttons  s on the lower left?
 
 I don't have GNOME installed here, but my guess would be that you're
 looking at the stock GtkAboutDialog, which is part of the GTK+.

The GtkAboutDialog class is based on GtkDialog, which defines a
GtkHButtonBox container, which you can add your own buttons to with a
call to gtk_dialog_add_button() or gtk_dialog_add_buttons()


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: HELP/About was :: [Re: suggestions on user config?]

2012-02-19 Thread Gary Kline
On Sun, Feb 19, 2012 at 07:40:23AM -0700, Michael Torrie wrote:
 Date: Sun, 19 Feb 2012 07:40:23 -0700
 From: Michael Torrie torr...@gmail.com
 Subject: Re: HELP/About was :: [Re: suggestions on user config?]
 To: gtk-app-devel-list@gnome.org
 
 On 02/19/2012 06:38 AM, Tadej Borovšak wrote:
  Hi
  
 the dialoh has a Close button in the lower right.  In the
 lower left are two buttons.  one is labeled Credits; next
 to it is a button labeled License that displays the GNU
 copyright.  can somebody clue  me in on how to add the two
 buttons  s on the lower left?
  
  I don't have GNOME installed here, but my guess would be that you're
  looking at the stock GtkAboutDialog, which is part of the GTK+.
 
 The GtkAboutDialog class is based on GtkDialog, which defines a
 GtkHButtonBox container, which you can add your own buttons to with a
 call to gtk_dialog_add_button() or gtk_dialog_add_buttons()


note what i just emailed to tadej, that these lines displayeed Close
in the lower right:

  hbox = gtk_hbutton_box_new ();
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbox), GTK_BUTTONBOX_END);
  gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);

  close = gtk_button_new_with_label (Close);
  gtk_container_add (GTK_CONTAINER (hbox), close);
  g_signal_connect (close, clicked, G_CALLBACK (remove_text_window), window);

  gtk_widget_show_all (window);


i've been looking for code to learn from.  i spotted this botton
layout from the game 'Iagno' but could only find part of its source.
lucky for me that i know c++.  be nice if there were some macro like 
GTK_BUTTONBOX_LEFT!

 
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
 

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
 Voice By Computer (for Universal Access): http:/www.thought.org/vbc
  The 8.57a release of Jottings: http://jottings.thought.org
 Twenty-five years of service to the Unix community.

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: HELP/About was :: [Re: suggestions on user config?]

2012-02-19 Thread Michael Torrie
On 02/19/2012 02:25 PM, Gary Kline wrote:
 i've been looking for code to learn from.  i spotted this botton
 layout from the game 'Iagno' but could only find part of its source.
 lucky for me that i know c++.  be nice if there were some macro like 
 GTK_BUTTONBOX_LEFT!

GtkButtonBox is just a special type of layout widget that keeps the
buttons all the same size.  You can adjust it to put all the buttons to
the right, left, center, or evenly across the dialog box.  Or you can
use a regular hbox, set the padding and margins the way you want, and
use gtk_box_pack_start() to put them towards the left, and
gtk_box_pack_end() to put them towards the right.  And if set the
HOMOGENEOUS property, they will all be the same size.

I suggest you run glade-3 and just play with the layouts to get a feel
for how you can use layouts to accomplish what you want.  You can drag
and drop the layouts, put layouts in layouts, and drop buttons and
things in to see how they space out, etc.
http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html, particularly
part 7 that talks about packing and layout.

You might even want to use glade to develop your GUIs and then use
GtkBuilder to build them in your program without using code (it is
easier once you figure out how it works).  Building GUIs with code is
still okay, but for large programs it's just too much of a pain!

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: HELP/About was :: [Re: suggestions on user config?]

2012-02-19 Thread Gary Kline
On Sun, Feb 19, 2012 at 04:26:37PM -0700, Michael Torrie wrote:
 Date: Sun, 19 Feb 2012 16:26:37 -0700
 From: Michael Torrie torr...@gmail.com
 Subject: Re: HELP/About was :: [Re: suggestions on user config?]
 CC: gtk-app-devel-list@gnome.org
 
 On 02/19/2012 02:25 PM, Gary Kline wrote:
  i've been looking for code to learn from.  i spotted this botton
  layout from the game 'Iagno' but could only find part of its source.
  lucky for me that i know c++.  be nice if there were some macro like 
  GTK_BUTTONBOX_LEFT!
 
 GtkButtonBox is just a special type of layout widget that keeps the
 buttons all the same size.  You can adjust it to put all the buttons to
 the right, left, center, or evenly across the dialog box.  Or you can
 use a regular hbox, set the padding and margins the way you want, and
 use gtk_box_pack_start() to put them towards the left, and
 gtk_box_pack_end() to put them towards the right.  And if set the
 HOMOGENEOUS property, they will all be the same size.
 
 I suggest you run glade-3 and just play with the layouts to get a feel
 for how you can use layouts to accomplish what you want.  You can drag
 and drop the layouts, put layouts in layouts, and drop buttons and
 things in to see how they space out, etc.
 http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html, particularly
 part 7 that talks about packing and layout.
 
 You might even want to use glade to develop your GUIs and then use
 GtkBuilder to build them in your program without using code (it is
 easier once you figure out how it works).  Building GUIs with code is
 still okay, but for large programs it's just too much of a pain!
 

the thing is that i'm almost done with the program.  well,
modulo the options that the user has to set.  i  should have
that worked out pretty soon.  the only thing in File is 
Want to Save and Quit.

with these dialogs in Help, it is just a matter of how nice
i want things to look; very nice or somewhat clumsy.
--regarding the buttons, i figured that out about an hour
ago except the buttons are on different levels.  i'll check
out gtkbuttonbox and more.  just not now; time for a break:)

 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
 Voice By Computer (for Universal Access): http:/www.thought.org/vbc
  The 8.57a release of Jottings: http://jottings.thought.org
 Twenty-five years of service to the Unix community.

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


HELP/About was :: [Re: suggestions on user config?]

2012-02-18 Thread Gary Kline
On Thu, Feb 16, 2012 at 05:37:00PM -0800, Gary Kline wrote:
 Date: Thu, 16 Feb 2012 17:37:00 -0800
 From: Gary Kline kl...@thought.org
 Subject: suggestions on user config?
 To: GTK Devel List gtk-app-devel-list@gnome.org
 
 
 if you look at my code, it is as if espeak takes a truckload on
 inputs, but really, there are only four:
 

[ ... ]

 
 gary
 

I'm making very slow And steady progress on the horizontal
scrollbars, so i thought i would ask a much simpler
question.  how can i get a dialog like the Help/About 
callback in a game called Iagno?  

the dialoh has a Close button in the lower right.  In the
lower left are two buttons.  one is labeled Credits; next
to it is a button labeled License that displays the GNU
copyright.  can somebody clue  me in on how to add the two
buttons  s on the lower left?

gary

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
 Voice By Computer (for Universal Access): http:/www.thought.org/vbc
  The 8.57a release of Jottings: http://jottings.thought.org
 Twenty-five years of service to the Unix community.

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list