@@ -73,11 +73,15 @@ def entry_dialog(self, caller, data = None, header = _("Enter value") , label =
7373 dialog = gtk .Dialog (header ,
7474 caller .widgets .window1 ,
7575 gtk .DIALOG_DESTROY_WITH_PARENT ,
76- (gtk .STOCK_CANCEL , gtk .RESPONSE_REJECT ,
77- gtk .STOCK_OK , gtk .RESPONSE_ACCEPT ))
76+ (gtk .STOCK_CANCEL , gtk .RESPONSE_REJECT ,
77+ gtk .STOCK_OK , gtk .RESPONSE_ACCEPT ))
7878 label = gtk .Label (label )
7979 label .modify_font (pango .FontDescription ("sans 20" ))
8080 calc = gladevcp .Calculator ()
81+ # add label to control the height of the action_area
82+ label_h = gtk .Label ("\n \n \n " )
83+ dialog .action_area .pack_start (label_h )
84+ dialog .action_area .reorder_child (label_h , 0 )
8185 dialog .vbox .pack_start (label )
8286 dialog .vbox .add (calc )
8387 if data != None :
@@ -87,7 +91,7 @@ def entry_dialog(self, caller, data = None, header = _("Enter value") , label =
8791 calc .set_property ("font" , "sans 20" )
8892 calc .set_editable (True )
8993 calc .entry .connect ("activate" , lambda w : dialog .emit ("response" , gtk .RESPONSE_ACCEPT ))
90- dialog .parse_geometry ("400x400 " )
94+ dialog .parse_geometry ("460x400 " )
9195 dialog .set_decorated (True )
9296 self .emit ("play_sound" , "alert" )
9397 if integer : # The user is only allowed to enter integer values, we hide some button
0 commit comments