diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-01-27 01:57:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-27 01:57:28 +0800 |
commit | bbb598d787744af0f5ad7c33240a8e98bab941d6 (patch) | |
tree | 085129455d9ce901489daa71ff185741862a9213 /addressbook/printing/test-print.c | |
parent | 069f7623c9a267c008d0b29add21c9d97063eddd (diff) | |
download | gsoc2013-evolution-bbb598d787744af0f5ad7c33240a8e98bab941d6.tar gsoc2013-evolution-bbb598d787744af0f5ad7c33240a8e98bab941d6.tar.gz gsoc2013-evolution-bbb598d787744af0f5ad7c33240a8e98bab941d6.tar.bz2 gsoc2013-evolution-bbb598d787744af0f5ad7c33240a8e98bab941d6.tar.lz gsoc2013-evolution-bbb598d787744af0f5ad7c33240a8e98bab941d6.tar.xz gsoc2013-evolution-bbb598d787744af0f5ad7c33240a8e98bab941d6.tar.zst gsoc2013-evolution-bbb598d787744af0f5ad7c33240a8e98bab941d6.zip |
Migrate the test programs off libgnomeui/libbonobo.
2009-01-26 Matthew Barnes <mbarnes@redhat.com>
* addressbook/printing/test-print.c:
* addressbook/printing/test-contact-print-style-editor.c:
Migrate the test programs off libgnomeui/libbonobo.
svn path=/trunk/; revision=37133
Diffstat (limited to 'addressbook/printing/test-print.c')
-rw-r--r-- | addressbook/printing/test-print.c | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/addressbook/printing/test-print.c b/addressbook/printing/test-print.c index 2c658840e6..3c02834de3 100644 --- a/addressbook/printing/test-print.c +++ b/addressbook/printing/test-print.c @@ -24,35 +24,28 @@ #include <stdlib.h> #include <gtk/gtk.h> -#include <libgnomeui/gnome-ui-init.h> #include <glade/glade.h> -#include <bonobo/bonobo-main.h> #include "e-contact-print.h" -int main( int argc, char *argv[] ) +int +main (int argc, char *argv[]) { - GList *shown_fields = NULL; + GList *shown_fields = NULL; - /* bindtextdomain (PACKAGE, GNOMELOCALEDIR); - textdomain (PACKAGE);*/ + gtk_init (&argc, &argv); - gnome_program_init ("Contact Print Test", VERSION, - LIBGNOMEUI_MODULE, - argc, argv, - NULL); + glade_init (); - glade_init (); + shown_fields = g_list_append (shown_fields, "First field"); + shown_fields = g_list_append (shown_fields, "Second field"); + shown_fields = g_list_append (shown_fields, "Third field"); + shown_fields = g_list_append (shown_fields, "Fourth field"); - shown_fields = g_list_append(shown_fields, "First field"); - shown_fields = g_list_append(shown_fields, "Second field"); - shown_fields = g_list_append(shown_fields, "Third field"); - shown_fields = g_list_append(shown_fields, "Fourth field"); + /* does nothing */ + e_contact_print (NULL, NULL, NULL, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG); - /* does nothing */ - e_contact_print (NULL, NULL, NULL, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG); + gtk_main (); - bonobo_main(); - - /* Not reached. */ - return 0; + /* Not reached. */ + return 0; } |