GConf: samples
- From: Yasushi Shoji <yashi yashi com>
- To: gnome-devel-list gnome org
- Subject: GConf: samples
- Date: Sun, 30 Apr 2000 00:42:04 -0400
hi,
I just spent writing GConf module for Ruby. while that, it annoyed me
so much. so, here is quick patch for cvs HEAD.
# i'm just lazy hitting C-c ;p
regards,
--
yashi
$ cvs diff -u simple-view.c simple-controller.c
Index: simple-view.c
===================================================================
RCS file: /cvs/gnome/gconf/examples/simple-view.c,v
retrieving revision 1.4
diff -u -u -r1.4 simple-view.c
--- simple-view.c 2000/03/08 21:56:39 1.4
+++ simple-view.c 2000/04/30 04:33:16
@@ -67,6 +67,8 @@
client = gconf_client_new();
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ gtk_signal_connect(GTK_OBJECT(window), "delete-event",
+ gtk_main_quit, NULL);
str = gconf_client_get_string(client, "/extra/test/directory/key",
NULL);
Index: simple-controller.c
===================================================================
RCS file: /cvs/gnome/gconf/examples/simple-controller.c,v
retrieving revision 1.3
diff -u -u -r1.3 simple-controller.c
--- simple-controller.c 2000/03/08 21:56:39 1.3
+++ simple-controller.c 2000/04/30 04:33:16
@@ -68,6 +68,9 @@
GTK_SIGNAL_FUNC(entry_activated_callback),
client);
+ gtk_signal_connect(GTK_OBJECT(window), "delete-event",
+ gtk_main_quit, NULL);
+
gtk_widget_show_all(window);
gtk_main();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]