Fixed alternating button order in Find dialog; use it in more dialogs (LoneFox)
This commit is contained in:
parent
d4b984a94d
commit
c8ea7257a5
2
moo.mprj
2
moo.mprj
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<medit-project version="1.0" type="C" name="moo">
|
<medit-project version="1.0" type="C" name="moo">
|
||||||
<active>test</active>
|
<active>debug</active>
|
||||||
<configurations>
|
<configurations>
|
||||||
<darwin>
|
<darwin>
|
||||||
<build_dir>build/darwin</build_dir>
|
<build_dir>build/darwin</build_dir>
|
||||||
|
@ -93,6 +93,10 @@ _moo_print_preview_init (MooPrintPreview *preview)
|
|||||||
moo_glade_xml_fill_widget (preview->priv->xml, GTK_WIDGET (preview),
|
moo_glade_xml_fill_widget (preview->priv->xml, GTK_WIDGET (preview),
|
||||||
mooprintpreview_glade_xml, -1,
|
mooprintpreview_glade_xml, -1,
|
||||||
"dialog", NULL);
|
"dialog", NULL);
|
||||||
|
gtk_dialog_set_alternative_button_order (GTK_DIALOG (preview),
|
||||||
|
GTK_RESPONSE_APPLY,
|
||||||
|
GTK_RESPONSE_CLOSE,
|
||||||
|
-1);
|
||||||
|
|
||||||
preview->priv->context = NULL;
|
preview->priv->context = NULL;
|
||||||
preview->priv->gtk_preview = NULL;
|
preview->priv->gtk_preview = NULL;
|
||||||
|
@ -190,7 +190,7 @@ moo_find_constructor (GType type,
|
|||||||
stock_id, GTK_RESPONSE_OK,
|
stock_id, GTK_RESPONSE_OK,
|
||||||
NULL);
|
NULL);
|
||||||
gtk_dialog_set_alternative_button_order (GTK_DIALOG (find), GTK_RESPONSE_OK,
|
gtk_dialog_set_alternative_button_order (GTK_DIALOG (find), GTK_RESPONSE_OK,
|
||||||
GTK_STOCK_CANCEL, -1);
|
GTK_RESPONSE_CANCEL, -1);
|
||||||
gtk_dialog_set_default_response (GTK_DIALOG (find), GTK_RESPONSE_OK);
|
gtk_dialog_set_default_response (GTK_DIALOG (find), GTK_RESPONSE_OK);
|
||||||
|
|
||||||
moo_help_set_id (GTK_WIDGET (find), find->replace ?
|
moo_help_set_id (GTK_WIDGET (find), find->replace ?
|
||||||
|
@ -364,6 +364,10 @@ create_grep_dialog (MooEditWindow *window,
|
|||||||
gtk_dialog_set_response_sensitive (GTK_DIALOG (stuff->grep_dialog),
|
gtk_dialog_set_response_sensitive (GTK_DIALOG (stuff->grep_dialog),
|
||||||
GTK_RESPONSE_OK, FALSE);
|
GTK_RESPONSE_OK, FALSE);
|
||||||
moo_window_set_parent (stuff->grep_dialog, GTK_WIDGET (window));
|
moo_window_set_parent (stuff->grep_dialog, GTK_WIDGET (window));
|
||||||
|
gtk_dialog_set_alternative_button_order (GTK_DIALOG (stuff->grep_dialog),
|
||||||
|
GTK_RESPONSE_OK,
|
||||||
|
GTK_RESPONSE_CANCEL,
|
||||||
|
-1);
|
||||||
|
|
||||||
moo_help_set_id (stuff->grep_dialog, HELP_SECTION_DIALOG_FIND_IN_FILES);
|
moo_help_set_id (stuff->grep_dialog, HELP_SECTION_DIALOG_FIND_IN_FILES);
|
||||||
moo_help_connect_keys (stuff->grep_dialog);
|
moo_help_connect_keys (stuff->grep_dialog);
|
||||||
@ -403,6 +407,10 @@ create_find_dialog (MooEditWindow *window,
|
|||||||
GTK_RESPONSE_OK);
|
GTK_RESPONSE_OK);
|
||||||
gtk_dialog_set_response_sensitive (GTK_DIALOG (stuff->find_dialog),
|
gtk_dialog_set_response_sensitive (GTK_DIALOG (stuff->find_dialog),
|
||||||
GTK_RESPONSE_OK, FALSE);
|
GTK_RESPONSE_OK, FALSE);
|
||||||
|
gtk_dialog_set_alternative_button_order (GTK_DIALOG (stuff->find_dialog),
|
||||||
|
GTK_RESPONSE_OK,
|
||||||
|
GTK_RESPONSE_CANCEL,
|
||||||
|
-1);
|
||||||
moo_window_set_parent (stuff->find_dialog, GTK_WIDGET (window));
|
moo_window_set_parent (stuff->find_dialog, GTK_WIDGET (window));
|
||||||
|
|
||||||
moo_help_set_id (stuff->find_dialog, HELP_SECTION_DIALOG_FIND_FILE);
|
moo_help_set_id (stuff->find_dialog, HELP_SECTION_DIALOG_FIND_FILE);
|
||||||
|
@ -64,6 +64,7 @@ def get_format(parent=None):
|
|||||||
window = gtk.Dialog("Select Format", parent, 0,
|
window = gtk.Dialog("Select Format", parent, 0,
|
||||||
(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT,
|
(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT,
|
||||||
gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))
|
gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))
|
||||||
|
window.set_alternative_button_order([gtk.RESPONSE_ACCEPT, gtk.RESPONSE_REJECT])
|
||||||
window.set_size_request(250, 300)
|
window.set_size_request(250, 300)
|
||||||
swindow = gtk.ScrolledWindow()
|
swindow = gtk.ScrolledWindow()
|
||||||
treeview = gtk.TreeView()
|
treeview = gtk.TreeView()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user