diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-17 07:49:31 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-17 07:49:31 +0800 |
commit | d8e4ebebc320c72ae93c88dc43d8ae220a94331d (patch) | |
tree | ee09f7d541eed7543ec2fb0edbc54c8723c15176 /widgets/text/e-entry-test.c | |
parent | 09e8fe231719c87f7b1b4a22cc7015773bb1be19 (diff) | |
download | gsoc2013-evolution-d8e4ebebc320c72ae93c88dc43d8ae220a94331d.tar.gz gsoc2013-evolution-d8e4ebebc320c72ae93c88dc43d8ae220a94331d.tar.zst gsoc2013-evolution-d8e4ebebc320c72ae93c88dc43d8ae220a94331d.zip |
Lots of GObject work.
2002-11-16 Chris Toshok <toshok@ximian.com>
* gal/e-text/e-completion-test.c: Lots of GObject work.
* gal/e-text/e-completion-view.[ch]: same.
* gal/e-text/e-completion.[ch]: same.
* gal/e-text/e-entry.[ch]: same.
* gal/e-text/e-table-text-model.[ch]: same.
* gal/e-text/e-text-model-uri.[ch]: same.
* gal/e-text/e-text-model.[ch]: same.
* gal/e-text/e-text-test.c: same.
* gal/e-text/e-text.[ch]: same.
svn path=/trunk/; revision=18800
Diffstat (limited to 'widgets/text/e-entry-test.c')
-rw-r--r-- | widgets/text/e-entry-test.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/widgets/text/e-entry-test.c b/widgets/text/e-entry-test.c index 5dc78364d4..d30ba20a9f 100644 --- a/widgets/text/e-entry-test.c +++ b/widgets/text/e-entry-test.c @@ -27,7 +27,7 @@ #include "e-entry.h" #include <gal/util/e-i18n.h> -static void destroy_callback(GtkWidget *app, gpointer data) +static void destroy_callback(gpointer data, GObject *where_object_was) { exit(0); } @@ -64,16 +64,15 @@ int main( int argc, char *argv[] ) app = gnome_app_new("EEntry Test", NULL); entry = e_entry_new(); - gtk_object_set(GTK_OBJECT(entry), - "editable", TRUE, - "use_ellipsis", TRUE, - NULL); + g_object_set(entry, + "editable", TRUE, + "use_ellipsis", TRUE, + NULL); gnome_app_set_contents( GNOME_APP( app ), entry ); /* Connect the signals */ - gtk_signal_connect( GTK_OBJECT( app ), "destroy", - GTK_SIGNAL_FUNC( destroy_callback ), - ( gpointer ) app ); + g_object_weak_ref (G_OBJECT (app), + destroy_callback, app); gtk_widget_show_all( app ); |