[gnome-panel] libpanel-applet: Remove panel_applet_new()
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] libpanel-applet: Remove panel_applet_new()
- Date: Thu, 24 Feb 2011 11:14:40 +0000 (UTC)
commit 59b4e0fdd0b296d22d36bd4a23a8660f4b0d73bd
Author: Vincent Untz <vuntz gnome org>
Date: Thu Feb 24 12:11:49 2011 +0100
libpanel-applet: Remove panel_applet_new()
It really cannot be used this way since we need some properties to be
set for the PanelApplet object to work.
libpanel-applet/panel-applet.c | 10 ----------
libpanel-applet/panel-applet.h | 2 --
2 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/libpanel-applet/panel-applet.c b/libpanel-applet/panel-applet.c
index 63223de..f4ce230 100644
--- a/libpanel-applet/panel-applet.c
+++ b/libpanel-applet/panel-applet.c
@@ -2081,16 +2081,6 @@ panel_applet_class_init (PanelAppletClass *klass)
add_tab_bindings (binding_set, GDK_CONTROL_MASK | GDK_SHIFT_MASK, GTK_DIR_TAB_BACKWARD);
}
-GtkWidget *
-panel_applet_new (void)
-{
- PanelApplet *applet;
-
- applet = g_object_new (PANEL_TYPE_APPLET, NULL);
-
- return GTK_WIDGET (applet);
-}
-
static void
method_call_cb (GDBusConnection *connection,
const gchar *sender,
diff --git a/libpanel-applet/panel-applet.h b/libpanel-applet/panel-applet.h
index 479d8b2..af11e72 100644
--- a/libpanel-applet/panel-applet.h
+++ b/libpanel-applet/panel-applet.h
@@ -82,8 +82,6 @@ struct _PanelAppletClass {
GType panel_applet_get_type (void) G_GNUC_CONST;
-GtkWidget *panel_applet_new (void);
-
PanelAppletOrient panel_applet_get_orient (PanelApplet *applet);
guint panel_applet_get_size (PanelApplet *applet);
cairo_pattern_t *panel_applet_get_background (PanelApplet *applet);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]