[ekiga] Removed gnomemeeting_window_get_size : it was unused
- From: Julien Puydt <jpuydt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [ekiga] Removed gnomemeeting_window_get_size : it was unused
- Date: Tue, 20 Oct 2009 19:29:37 +0000 (UTC)
commit e93ee05ecfca47ed9ccfd0be64601be49e73c76e
Author: Julien Puydt <jpuydt gnome org>
Date: Tue Oct 20 18:06:08 2009 +0200
Removed gnomemeeting_window_get_size : it was unused
src/gui/misc.cpp | 36 ------------------------------------
src/gui/misc.h | 14 --------------
2 files changed, 0 insertions(+), 50 deletions(-)
---
diff --git a/src/gui/misc.cpp b/src/gui/misc.cpp
index 1bc7fdf..39c05a6 100644
--- a/src/gui/misc.cpp
+++ b/src/gui/misc.cpp
@@ -196,39 +196,3 @@ gnomemeeting_window_hide (GtkWidget *w)
g_free (conf_key_position);
g_free (conf_key_size);
}
-
-
-void
-gnomemeeting_window_get_size (GtkWidget *w,
- int & x,
- int & y)
-{
- gchar *window_name = NULL;
- gchar *conf_key_size = NULL;
- gchar *size = NULL;
-
- gchar **couple = NULL;
-
- g_return_if_fail (w != NULL);
-
- window_name = (char *) g_object_get_data (G_OBJECT (w), "window_name");
-
- g_return_if_fail (window_name != NULL);
-
- conf_key_size =
- g_strdup_printf ("%s%s/size", USER_INTERFACE_KEY, window_name);
-
-
- size = gm_conf_get_string (conf_key_size);
- if (size)
- couple = g_strsplit (size, ",", 0);
-
- if (couple && couple [0])
- x = atoi (couple [0]);
- if (couple && couple [1])
- y = atoi (couple [1]);
-
- g_strfreev (couple);
- g_free (size);
- g_free (conf_key_size);
-}
diff --git a/src/gui/misc.h b/src/gui/misc.h
index f9bbefd..3953de2 100644
--- a/src/gui/misc.h
+++ b/src/gui/misc.h
@@ -81,18 +81,4 @@ void gnomemeeting_window_show (GtkWidget *w);
*/
void gnomemeeting_window_hide (GtkWidget *w);
-
-/* DESCRIPTION : /
- * BEHAVIOR : Gets the size of the GmWindow stored in the configuration.
- * The window is given as gpointer.
- * The category can be addressbook, main_window, prefs_window,
- * or anything under the
- * /apps/gnomemeeting/general/user_interface/ key and is given
- * by g_object_get_data (G_OBJECT, "window_name"). The window
- * object is pointed by the GtkWidget *.
- * PRE : /
- */
-void gnomemeeting_window_get_size (GtkWidget *w,
- int &x,
- int &y);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]