Mercurial > geeqie
comparison src/preferences.c @ 1024:c92e5a5c3bfa
Add a Save button to Preferences dialog, which allow to save options to file without quitting the application.
author | zas_ |
---|---|
date | Sun, 31 Aug 2008 12:29:49 +0000 |
parents | d22e21bfd2a3 |
children | db720c5a9169 |
comparison
equal
deleted
inserted
replaced
1023:650c02c0c8ff | 1024:c92e5a5c3bfa |
---|---|
415 static void config_window_apply_cb(GtkWidget *widget, gpointer data) | 415 static void config_window_apply_cb(GtkWidget *widget, gpointer data) |
416 { | 416 { |
417 config_window_apply(); | 417 config_window_apply(); |
418 } | 418 } |
419 | 419 |
420 static void config_window_save_cb(GtkWidget *widget, gpointer data) | |
421 { | |
422 config_window_apply(); | |
423 save_options(options); | |
424 } | |
425 | |
420 /* | 426 /* |
421 *----------------------------------------------------------------------------- | 427 *----------------------------------------------------------------------------- |
422 * config window setup (private) | 428 * config window setup (private) |
423 *----------------------------------------------------------------------------- | 429 *----------------------------------------------------------------------------- |
424 */ | 430 */ |
1646 gtk_widget_grab_default(button); | 1652 gtk_widget_grab_default(button); |
1647 gtk_widget_show(button); | 1653 gtk_widget_show(button); |
1648 | 1654 |
1649 ct_button = button; | 1655 ct_button = button; |
1650 | 1656 |
1657 button = pref_button_new(NULL, GTK_STOCK_SAVE, NULL, FALSE, | |
1658 G_CALLBACK(config_window_save_cb), NULL); | |
1659 gtk_container_add(GTK_CONTAINER(hbox), button); | |
1660 GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); | |
1661 gtk_widget_show(button); | |
1662 | |
1651 button = pref_button_new(NULL, GTK_STOCK_APPLY, NULL, FALSE, | 1663 button = pref_button_new(NULL, GTK_STOCK_APPLY, NULL, FALSE, |
1652 G_CALLBACK(config_window_apply_cb), NULL); | 1664 G_CALLBACK(config_window_apply_cb), NULL); |
1653 gtk_container_add(GTK_CONTAINER(hbox), button); | 1665 gtk_container_add(GTK_CONTAINER(hbox), button); |
1654 GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); | 1666 GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); |
1655 gtk_widget_show(button); | 1667 gtk_widget_show(button); |