From 1f07e7ef80024b21326df177180e9575ab677163 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 21 Dec 2004 18:48:35 +0000 Subject: [PATCH] Actually show the window... 2004-12-21 Marco Pesenti Gritti * po/POTFILES.in: * shell/ev-application.c: (window_destroy_cb): * shell/ev-window.c: * shell/main.c: (main): Actually show the window... --- ChangeLog | 9 +++++++++ po/POTFILES.in | 5 ----- shell/ev-application.c | 4 ++-- shell/ev-window.c | 1 - shell/main.c | 6 ++++++ 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6251d5f8..deaa312b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-12-21 Marco Pesenti Gritti + + * po/POTFILES.in: + * shell/ev-application.c: (window_destroy_cb): + * shell/ev-window.c: + * shell/main.c: (main): + + Actually show the window... + 2004-12-21 Marco Pesenti Gritti * Makefile.am: diff --git a/po/POTFILES.in b/po/POTFILES.in index e99dff1c..c2e3197c 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,8 +1,3 @@ [encoding: UTF-8] -gs-renderer/GNOME_GGV.server.in.in -gs-renderer/ggv-control-ui.xml -gs-renderer/ggv-postscript-view-ui.xml -gs-renderer/ggv-postscript-view.c -gs-renderer/ggv-sidebar.c shell/ev-application.c shell/ev-window.c diff --git a/shell/ev-application.c b/shell/ev-application.c index 632ec373..541b87ec 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include @@ -66,7 +66,7 @@ window_destroy_cb (GtkObject *object, gpointer user_data) g_list_remove (application->priv->windows, object); if (application->priv->windows == NULL) - bonobo_main_quit (); + gtk_main_quit (); } EvWindow * diff --git a/shell/ev-window.c b/shell/ev-window.c index 9fc65dae..fd819b36 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -39,7 +39,6 @@ #include #include #include -#include #include #include diff --git a/shell/main.c b/shell/main.c index 8ad8f284..6b6e1ffd 100644 --- a/shell/main.c +++ b/shell/main.c @@ -20,6 +20,8 @@ #include "config.h" +#include "ev-application.h" + #include #include #include @@ -36,6 +38,7 @@ main (int argc, char *argv[]) poptContext context; GValue context_as_value = { 0 }; GnomeProgram *program; + GtkWidget *window; #ifdef ENABLE_NLS /* Initialize the i18n stuff */ @@ -58,6 +61,9 @@ main (int argc, char *argv[]) g_value_init (&context_as_value, G_TYPE_POINTER)); context = g_value_get_pointer (&context_as_value); + window = GTK_WIDGET (ev_application_new_window (EV_APP)); + gtk_widget_show (window); + gtk_main (); poptFreeContext (context); -- 2.43.5