[gnumeric] Compilation: remove remnants of libgnome support. Fix warnings.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Compilation: remove remnants of libgnome support. Fix warnings.
- Date: Mon, 26 Sep 2011 17:22:40 +0000 (UTC)
commit e688a74c481d9d580fdefc1134df48527a8cbac4
Author: Morten Welinder <terra gnome org>
Date: Mon Sep 26 13:21:38 2011 -0400
Compilation: remove remnants of libgnome support. Fix warnings.
ChangeLog | 9 +++++++++
src/main-application.c | 19 -------------------
src/wbc-gtk-actions.c | 10 ++--------
3 files changed, 11 insertions(+), 27 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5b24b35..f9684b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-09-26 Morten Welinder <terra gnome org>
+
+ * src/wbc-gtk-actions.c (cb_add_component_from_file): #if 0.
+
+ * src/main-application.c (call_gnome_authentication_manager_init):
+ remove.
+ (gnumeric_arg_parse): Don't call
+ call_gnome_authentication_manager_init.
+
2011-09-26 Jean Brefort <jean brefort normalesup org>
* src/sheet-object-widget.c (sheet_widget_frame_create_widget): make
diff --git a/src/main-application.c b/src/main-application.c
index 49807d2..5cbfb2e 100644
--- a/src/main-application.c
+++ b/src/main-application.c
@@ -131,24 +131,6 @@ gnumeric_arg_shutdown (void)
}
}
-/* If something links in the authentication manager, initialize it. */
-static void
-call_gnome_authentication_manager_init (void)
-{
- GModule *self = g_module_open (NULL, 0);
- gboolean ok;
- gpointer gami = NULL;
- void (*_gnome_authentication_manager_init) (void);
-
- if (!self) return;
- ok = g_module_symbol (self, "gnome_authentication_manager_init", &gami);
- g_module_close (self);
- if (!ok || gami == NULL) return;
-
- _gnome_authentication_manager_init = (void (*) (void))gami;
- _gnome_authentication_manager_init ();
-}
-
static void
gnumeric_arg_parse (int argc, char **argv)
{
@@ -190,7 +172,6 @@ gnumeric_arg_parse (int argc, char **argv)
if (!funcdump) {
gtk_init (&argc, &argv);
- call_gnome_authentication_manager_init ();
}
}
diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c
index 96b1b4b..f198ac9 100644
--- a/src/wbc-gtk-actions.c
+++ b/src/wbc-gtk-actions.c
@@ -1394,19 +1394,13 @@ cb_add_component_new (GOComponent *component, gpointer wbcg)
wbcg_insert_object (WBC_GTK (wbcg), sheet_object_component_new (component));
}
+#if 0
static void
cb_add_component_from_file (GOComponent *component, gpointer wbcg)
{
wbcg_insert_object (WBC_GTK (wbcg), sheet_object_component_new (component));
}
-
-static gboolean
-button_press_cb (GtkDialog *dlg, GdkEventButton *ev)
-{
- if (ev->type == GDK_2BUTTON_PRESS)
- gtk_dialog_response (dlg, GTK_RESPONSE_OK);
- return FALSE;
-}
+#endif
static void
component_changed_cb (GOComponent *component, gpointer data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]