[glade] Moving a function from glade-gtk.c to glade-fixed.c



commit a9628287b9d8e16323ee055506bb00b185637f3e
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri May 3 21:59:48 2013 +0900

    Moving a function from glade-gtk.c to glade-fixed.c

 plugins/gtk+/glade-fixed.c |   35 ++++++++++++++++++++++-------------
 plugins/gtk+/glade-gtk.c   |    8 --------
 2 files changed, 22 insertions(+), 21 deletions(-)
---
diff --git a/plugins/gtk+/glade-fixed.c b/plugins/gtk+/glade-fixed.c
index e38a596..20ed25b 100644
--- a/plugins/gtk+/glade-fixed.c
+++ b/plugins/gtk+/glade-fixed.c
@@ -3,25 +3,24 @@
  *                 handle free-form child placement for containers such as 
  *                 GtkFixed and GtkLayout.
  *
- * Copyright (C) 2006 The GNOME Foundation.
+ * Copyright (C) 2006, 2013 Tristan Van Berkom.
  *
  * Author(s):
  *      Tristan Van Berkom <tvb gnome org>
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
- * USA.
+ * You should have received a copy of the GNU Lesser General Public 
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -1255,3 +1254,13 @@ glade_fixed_get_type (void)
     }
   return fixed_type;
 }
+
+/* This is called from the catalog for a few widgets */
+GladeWidget *
+glade_gtk_create_fixed_widget (GladeWidgetAdaptor * adaptor,
+                               const gchar * first_property_name,
+                               va_list var_args)
+{
+  return (GladeWidget *) g_object_new_valist (GLADE_TYPE_FIXED,
+                                              first_property_name, var_args);
+}
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 0b9eb6a..16e240e 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -85,14 +85,6 @@ glade_gtk_init (const gchar * name)
 }
 
 /* ----------------- Generic GladeFixed constructor ------------------ */
-GladeWidget *
-glade_gtk_create_fixed_widget (GladeWidgetAdaptor * adaptor,
-                               const gchar * first_property_name,
-                               va_list var_args)
-{
-  return (GladeWidget *) g_object_new_valist (GLADE_TYPE_FIXED,
-                                              first_property_name, var_args);
-}
 
 /* ----------------------------- GtkFrame ------------------------------ */
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]