Make dialog Apply/Close.
2002-02-10 Richard Hestilow <hestilow@ximian.com> * Make dialog Apply/Close.
This commit is contained in:
parent
42c170078b
commit
e911f2f502
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2002-02-10 Richard Hestilow <hestilow@ximian.com>
|
||||||
|
|
||||||
|
* Make dialog Apply/Close.
|
||||||
|
|
||||||
2002-02-04 Lauris Kaplinski <lauris@ximian.com>
|
2002-02-04 Lauris Kaplinski <lauris@ximian.com>
|
||||||
|
|
||||||
* gnome-ui-properties.c (dialog_button_clicked_cb): Use GtkDialog
|
* gnome-ui-properties.c (dialog_button_clicked_cb): Use GtkDialog
|
||||||
|
|
|
@ -30,6 +30,11 @@
|
||||||
#include "capplet-util.h"
|
#include "capplet-util.h"
|
||||||
#include "gconf-property-editor.h"
|
#include "gconf-property-editor.h"
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
RESPONSE_APPLY = 1,
|
||||||
|
RESPONSE_CLOSE
|
||||||
|
};
|
||||||
|
|
||||||
static GConfEnumStringPair toolbar_style_enums[] = {
|
static GConfEnumStringPair toolbar_style_enums[] = {
|
||||||
{ 0, "both" },
|
{ 0, "both" },
|
||||||
|
@ -70,12 +75,10 @@ dialog_button_clicked_cb (GtkDialog *dialog, gint response_id, GConfChangeSet *c
|
||||||
{
|
{
|
||||||
switch (response_id)
|
switch (response_id)
|
||||||
{
|
{
|
||||||
case GTK_RESPONSE_APPLY:
|
case RESPONSE_APPLY:
|
||||||
gconf_client_commit_change_set (gconf_client_get_default (), changeset, TRUE, NULL);
|
gconf_client_commit_change_set (gconf_client_get_default (), changeset, TRUE, NULL);
|
||||||
break;
|
break;
|
||||||
case GTK_RESPONSE_HELP:
|
case RESPONSE_CLOSE:
|
||||||
break;
|
|
||||||
case GTK_RESPONSE_CLOSE:
|
|
||||||
case GTK_RESPONSE_DELETE_EVENT:
|
case GTK_RESPONSE_DELETE_EVENT:
|
||||||
default:
|
default:
|
||||||
gtk_main_quit ();
|
gtk_main_quit ();
|
||||||
|
|
Loading…
Add table
Reference in a new issue