Re: dialog window resize

2011-03-10 Thread Kevin Ryde
Attila bardi attila.ba...@gmail.com writes: Then how can I set the window size and remove the right from the UI user to resize it? Maybe Gtk2::Window set_geometry_hints() saying the minimum and maximum sizes the same value. Or Gtk2::Gdk::Window set_functions() to take away the resize handles,

Re: dialog window resize

2011-03-09 Thread Attila bardi
, Attila bardi attila.ba...@gmail.com wrote: Hey, my problem is I try to set the default window size for a dialog window and I don't want the user resize it. But it is not working for me. If I set the resizable to false the default window size is not working anymore

Bring gtk dialog window to front

2010-10-19 Thread Guruprasad Bhat
Hi all, I have one application that has multiple full screen dialog windows. I am trying to bring one dialog to front that is already created showed earlier now it is back side of other windows. Can anybody suggest how to bring a dialog window to front that is already present at back side

Re: Bring gtk dialog window to front

2010-10-19 Thread David Nečas
a dialog window to front that is already present at back side? gtk_window_present() is probably what you need. Yeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: close button into the glade-3 about dialog window

2008-06-21 Thread Kevin Ryde
anguila [EMAIL PROTECTED] writes: I attach a example of the problem. For the close button you might have to hook it up to emit the close signal on the dialog. An Esc keybinding is setup automatically to do that, but a button may have to do it explicitly (even if named Close etc). For the

close button into the glade-3 about dialog window

2008-06-20 Thread anguila
I create a about dialog window with glade-3 in higher levels - about. And the about dialog it works but the close button doesn't do anything when I execute the program (doesn't close the widget/window). The widget is a dialog-action-area but I can access to the close button because is a internal

Re: close button into the glade-3 about dialog window

2008-06-20 Thread zentara
On Fri, 20 Jun 2008 21:24:02 +0200 anguila [EMAIL PROTECTED] wrote: I create a about dialog window with glade-3 in higher levels - about. And the about dialog it works but the close button doesn't do anything when I execute the program (doesn't close the widget/window). The widget is a dialog

Re: close button into the glade-3 about dialog window

2008-06-20 Thread anguila
Yes... it works :\ But I re-try with glade-3 an I can't understand why is still not working :S On Fri, Jun 20, 2008 at 9:27 PM, zentara [EMAIL PROTECTED] wrote: On Fri, 20 Jun 2008 21:24:02 +0200 anguila [EMAIL PROTECTED] wrote: I create a about dialog window with glade-3 in higher levels

Re: close button into the glade-3 about dialog window

2008-06-20 Thread Kevin Ryde
anguila [EMAIL PROTECTED] writes: when I click again in the menu to show it again it doesn't shows, it appears a small gray square. That sounds like its contents have been removed, or destroyed. Do you also get an unhelpful message on stdout about container foreach?

Re: close button into the glade-3 about dialog window

2008-06-20 Thread muppet
anguila wrote: Yes... it works :\ But I re-try with glade-3 an I can't understand why is still not working :S Is glade-3 creating a GtkAboutDialog instance or building its own GtkDialog? (THat is, what is the generated XML for that widget?) -- muppet scott at asofyet dot org

Re: close button into the glade-3 about dialog window

2008-06-20 Thread anguila
Is a glade-3 gtkabout dialog. I attach a example of the problem. Thanks to all. David. On Sat, Jun 21, 2008 at 12:35 AM, muppet [EMAIL PROTECTED] wrote: anguila wrote: Yes... it works :\ But I re-try with glade-3 an I can't understand why is still not working :S Is glade-3 creating

Re: Remove spaces in dialog window

2005-08-04 Thread Beast
muppet wrote: my $self = $class-SUPER::new(...); bless $self, $class; Sorry, newbie question: How do I set text $name from other subroutine? new { my $self = $class-SUPER::new(...); bless $self, $class; my $name = Gtk2::Entry-new(); $self-set_name(Test); } sub set_name

Re: Remove spaces in dialog window

2005-08-04 Thread muppet
; ... sub new { ... $self-show_all; return; } uhm, i think you meant return $self; There is extra space between button and lower border of dialog window. It's the empty action area at the bottom of the window. You haven't added any response buttons. Try adding this just

mnemonic labels (was Re: Remove spaces in dialog window)

2005-08-04 Thread muppet
On Aug 4, 2005, at 12:59 AM, Beast wrote: Whats the usefullness of using new_with_mnemonic in Label, since afaik Gtk2::Label is readonly widget. You can set the label to be the mnemonic for another widget. # new() is aliased to new_with_mnemonic() in the perl bindings: $label =

Re: widget name (was Re: Remove spaces in dialog window)

2005-08-04 Thread Beast
muppet wrote: On Aug 4, 2005, at 6:37 AM, Beast wrote: muppet wrote: my $self = $class-SUPER::new(...); bless $self, $class; Sorry, newbie question: How do I set text $name from other subroutine? Need more context, but i'll try to guess. In the context of your reply: --- This

Re: Remove spaces in dialog window

2005-08-04 Thread Beast
muppet wrote: If you don't want the row of buttons at the bottom of the window, then you don't actually want a Gtk2::Dialog. Thats fine. I can live with little extra space, it doesn't hurt anyway :) Thanks! -- --beast ___ gtk-perl-list mailing

Re: mnemonic labels (was Re: Remove spaces in dialog window)

2005-08-04 Thread Beast
muppet wrote: You can set the label to be the mnemonic for another widget. # new() is aliased to new_with_mnemonic() in the perl bindings: $label = Gtk2::Label-new ('_User Name'); $entry = Gtk2::Entry-new; # set $label to be the mnemonic for $entry $label-set_mnemonic_for

Re: widget name (was Re: Remove spaces in dialog window)

2005-08-04 Thread muppet
Beast said: muppet wrote: This is very dangerous. A plain, unmagical, blessed perl hash cannot be used as a Gtk2::Widget, because there is no actual C GObject backing it. Either use Glib::Object::Subclass to subclass Gtk2::Dialog (or any widget), or rebless the actual widget like this:

Re: mnemonic labels (was Re: Remove spaces in dialog window)

2005-08-04 Thread muppet
Beast said: muppet wrote: You can set the label to be the mnemonic for another widget. # new() is aliased to new_with_mnemonic() in the perl bindings: $label = Gtk2::Label-new ('_User Name'); $entry = Gtk2::Entry-new; # set $label to be the mnemonic for $entry

Remove spaces in dialog window

2005-08-03 Thread Beast
... our @ISA = qw(Gtk2::Dialog); sub new { my ($class, $parent, $title) = @_; my $self = {}; bless($self, $class); $self-{win} = $class-SUPER::new($title, $parent, modal); ... } In the bottom of dialog box/window, it has spaces (arround 5px) between the last widget and the

Re: Dialog Window

2002-02-17 Thread Dino Cherian K
gtk_window_set_transient_for is what you are looking for... In addition to gtk_window_set_modal your dialog window will stay on top and have the main control... The pity is, what I'm looking for is something a bit different... :( (already sent in a diferent mail) Ciao Dino Cherian K wrote

Dialog Window

2002-02-16 Thread Ignacio Nodal
Sometime ago someone told how to make a dialog window to get the control of the application.. I mean the dialog window being the only one to have the focus until it's closed/hided... I just can't find that mail anymore.. could anyone remind me how to do this? :) Thanks, Ignacio

Re: Dialog Window

2002-02-16 Thread Paul Davis
Sometime ago someone told how to make a dialog window to get the control of the application.. gtk_window_set_modal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Dialog Window

2002-02-16 Thread Ignacio Nodal
Paul Davis wrote: Sometime ago someone told how to make a dialog window to get the control of the application.. gtk_window_set_modal Mmmm, I didn't explain myself very good... My program has a main window with a GtkGLArea waiting impatiently for events to occur on it... Then I have

Re: Dialog Window

2002-02-16 Thread Dino Cherian K
Hi But it doesn't make the dialog window to stay on top of the parent window. I agree that it has the full input focus, but we can click on the parent window, even when the dialog window is visible. How can we fix that too? Will gtk_window_set_transient_for help? Thanks Dino CK On Saturday

how do I kill a gtk-dialog window?

2001-01-29 Thread Ronald Bultje
Hi there, I have a gtk_dialog window and it has a Cancel button. Now, how to make this button close the window but not the main window/application? I tried the code below but that kills the cancel button rather than the window itself... Here is my code: void menu_options(GtkWidget *widget,

How to set dialog window always on top??

2000-11-14 Thread alan
How to set dialog window always on top?? I program a YesNoWindow, I can set gtk_grab_add() let MainWindow can't get event. But I clicked the MainWindow, the YesNoWindow would lower MainWindow. Could I let the YesNoWindow(sub Dialog) always raise over MainWindow? How to do it??