[libpeas] Fix a few typos
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Fix a few typos
- Date: Thu, 14 Feb 2013 12:03:01 +0000 (UTC)
commit 7415d654a6b10252c4da5b6e926a92c8f9ea1e72
Author: Garrett Regier <garrettregier gmail com>
Date: Thu Feb 14 03:35:48 2013 -0800
Fix a few typos
libpeas-gtk/peas-gtk-plugin-manager.c | 4 ++--
libpeas/peas-plugin-info.c | 1 -
loaders/python/peas-plugin-loader-python.c | 4 ++--
tests/libpeas/testing/testing.c | 3 ++-
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libpeas-gtk/peas-gtk-plugin-manager.c b/libpeas-gtk/peas-gtk-plugin-manager.c
index 8810cd1..e8f3248 100644
--- a/libpeas-gtk/peas-gtk-plugin-manager.c
+++ b/libpeas-gtk/peas-gtk-plugin-manager.c
@@ -365,7 +365,7 @@ peas_gtk_plugin_manager_init (PeasGtkPluginManager *pm)
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM);
gtk_box_pack_start (GTK_BOX (pm), pm->priv->sw, TRUE, TRUE, 0);
- toolbar = gtk_toolbar_new();
+ toolbar = gtk_toolbar_new ();
gtk_toolbar_set_icon_size (GTK_TOOLBAR (toolbar), GTK_ICON_SIZE_MENU);
context = gtk_widget_get_style_context (toolbar);
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
@@ -374,11 +374,11 @@ peas_gtk_plugin_manager_init (PeasGtkPluginManager *pm)
toolitem = gtk_tool_item_new ();
gtk_tool_item_set_expand (toolitem, TRUE);
+ gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
/* this box is needed to get the items at the end of the toolbar */
toolbar_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_container_add (GTK_CONTAINER (toolitem), toolbar_box);
- gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
/* we need another box to disable css grouping */
item_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
diff --git a/libpeas/peas-plugin-info.c b/libpeas/peas-plugin-info.c
index 7ff291e..67fce29 100644
--- a/libpeas/peas-plugin-info.c
+++ b/libpeas/peas-plugin-info.c
@@ -56,7 +56,6 @@
* Copyright=Copyright  2009-10 Steve FrÃcinaux
* Website=http://live.gnome.org/Libpeas
* Help=http://library.gnome.org/devel/libpeas/unstable/
- * IAge=2
* ]|
**/
diff --git a/loaders/python/peas-plugin-loader-python.c b/loaders/python/peas-plugin-loader-python.c
index 6769ec3..1a4d67e 100644
--- a/loaders/python/peas-plugin-loader-python.c
+++ b/loaders/python/peas-plugin-loader-python.c
@@ -370,7 +370,7 @@ peas_plugin_loader_python_initialize (PeasPluginLoader *loader)
{
PeasPluginLoaderPython *pyloader = PEAS_PLUGIN_LOADER_PYTHON (loader);
PyObject *mdict, *gettext, *install, *gettext_args;
- gchar *prgname;
+ const gchar *prgname;
#if PY_VERSION_HEX < 0x03000000
const char *argv[] = { "", NULL };
#else
@@ -442,7 +442,7 @@ peas_plugin_loader_python_initialize (PeasPluginLoader *loader)
pygobject_init (PYGOBJECT_MAJOR_VERSION, PYGOBJECT_MINOR_VERSION, PYGOBJECT_MICRO_VERSION);
if (PyErr_Occurred ())
{
- g_warning ("Error initializing Python Plugin Loader:"
+ g_warning ("Error initializing Python Plugin Loader: "
"PyGObject initialization failed");
PyErr_Print ();
diff --git a/tests/libpeas/testing/testing.c b/tests/libpeas/testing/testing.c
index e0ab839..dc47478 100644
--- a/tests/libpeas/testing/testing.c
+++ b/tests/libpeas/testing/testing.c
@@ -63,8 +63,9 @@ testing_engine_new (void)
testing_util_push_log_hook ("*Error loading *invalid.plugin*");
testing_util_push_log_hook ("*Could not find 'Module' in *info-missing-module.plugin*");
- testing_util_push_log_hook ("*Could not find 'Name' in *info-missing-name.plugin*");
testing_util_push_log_hook ("*Error loading *info-missing-module.plugin*");
+
+ testing_util_push_log_hook ("*Could not find 'Name' in *info-missing-name.plugin*");
testing_util_push_log_hook ("*Error loading *info-missing-name.plugin*");
/* Must be after pushing log hooks */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]