[glade] Change API name glade_command_set_tempalte --> glade_command_set_project_template
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Change API name glade_command_set_tempalte --> glade_command_set_project_template
- Date: Thu, 11 Apr 2013 06:51:12 +0000 (UTC)
commit d457c4fa838ce0a31d7518deb7a3acf9970b7dd7
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Thu Apr 11 15:23:23 2013 +0900
Change API name glade_command_set_tempalte --> glade_command_set_project_template
More consistent API name with other project related commands.
gladeui/glade-command.c | 8 ++++----
gladeui/glade-command.h | 2 +-
gladeui/glade-project.c | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gladeui/glade-command.c b/gladeui/glade-command.c
index bf1c1ba..387ea79 100644
--- a/gladeui/glade-command.c
+++ b/gladeui/glade-command.c
@@ -1250,7 +1250,7 @@ glade_command_remove (GList *widgets)
/* If we're removing the template widget, then we need to unset it as template */
if (glade_project_get_template (GLADE_COMMAND (me)->priv->project) == widget)
- glade_command_set_template (GLADE_COMMAND (me)->priv->project, NULL);
+ glade_command_set_project_template (GLADE_COMMAND (me)->priv->project, NULL);
/* Undoably unset any object properties that may point to the removed object */
glade_command_delete_prop_refs (widget);
@@ -2742,15 +2742,15 @@ glade_command_template_collapse (GladeCommand *this_cmd, GladeCommand *other_cmd
}
/**
- * glade_command_set_template:
+ * glade_command_set_project_template:
* @project: A #GladeProject
* @widget: The #GladeWidget to make template
*
* Sets @widget to be the template widget in @project.
*/
void
-glade_command_set_template (GladeProject *project,
- GladeWidget *widget)
+glade_command_set_project_template (GladeProject *project,
+ GladeWidget *widget)
{
GladeCommandTemplate *me;
GladeWidget *old_template;
diff --git a/gladeui/glade-command.h b/gladeui/glade-command.h
index 606d5a5..ddae77b 100644
--- a/gladeui/glade-command.h
+++ b/gladeui/glade-command.h
@@ -88,7 +88,7 @@ void glade_command_set_project_target (GladeProject *project,
void glade_command_set_project_domain (GladeProject *project,
const gchar *domain);
-void glade_command_set_template (GladeProject *project,
+void glade_command_set_project_template(GladeProject *project,
GladeWidget *widget);
/************************** properties *********************************/
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index dc1d53e..ef1d364 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -4250,7 +4250,7 @@ on_template_combo_box_changed (GtkComboBox *combo, GladeProject *project)
gwidget = glade_widget_get_from_gobject (object);
- glade_command_set_template (project, gwidget);
+ glade_command_set_project_template (project, gwidget);
}
}
@@ -4277,7 +4277,7 @@ on_template_checkbutton_toggled (GtkToggleButton *togglebutton,
if (GTK_IS_WIDGET (object))
{
- glade_command_set_template (project, gwidget);
+ glade_command_set_project_template (project, gwidget);
composite = TRUE;
break;
}
@@ -4287,7 +4287,7 @@ on_template_checkbutton_toggled (GtkToggleButton *togglebutton,
gtk_toggle_button_set_active (togglebutton, FALSE);
}
else
- glade_command_set_template (project, NULL);
+ glade_command_set_project_template (project, NULL);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]