aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2010-02-19 06:15:00 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2010-02-19 06:15:00 +0800
commit8ce1c64808b2772e61be3f162defa22072117267 (patch)
tree83c5c48147a40726591899ce38d6021a211d918c
parent2917ac10a8a99e348648825990b7ae1088a3aacc (diff)
downloadgsoc2013-empathy-8ce1c64808b2772e61be3f162defa22072117267.tar
gsoc2013-empathy-8ce1c64808b2772e61be3f162defa22072117267.tar.gz
gsoc2013-empathy-8ce1c64808b2772e61be3f162defa22072117267.tar.bz2
gsoc2013-empathy-8ce1c64808b2772e61be3f162defa22072117267.tar.lz
gsoc2013-empathy-8ce1c64808b2772e61be3f162defa22072117267.tar.xz
gsoc2013-empathy-8ce1c64808b2772e61be3f162defa22072117267.tar.zst
gsoc2013-empathy-8ce1c64808b2772e61be3f162defa22072117267.zip
Rename Moblin to Meego throughout Empathy
At the request of Rob Bradford
-rw-r--r--configure.ac34
-rw-r--r--libempathy-gtk/Makefile.am4
-rw-r--r--libempathy-gtk/empathy-account-widget.c46
-rw-r--r--src/empathy-accounts-dialog.c12
4 files changed, 48 insertions, 48 deletions
diff --git a/configure.ac b/configure.ac
index c71bb9b7d..5989a06bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -402,33 +402,33 @@ AC_SUBST(GEOCLUE_CFLAGS)
AC_SUBST(GEOCLUE_LIBS)
# -----------------------------------------------------------
-# moblin widgets support
+# meego widgets support
# -----------------------------------------------------------
-AC_ARG_ENABLE(moblin,
- AS_HELP_STRING([--enable-moblin=@<:no/yes@:>@],
- [Enable moblin widgets]), ,
- enable_moblin=no)
+AC_ARG_ENABLE(meego,
+ AS_HELP_STRING([--enable-meego=@<:no/yes@:>@],
+ [Enable meego widgets]), ,
+ enable_meego=no)
-if test "x$enable_moblin" != "xno"; then
- PKG_CHECK_MODULES(MOBLIN,
+if test "x$enable_meego" != "xno"; then
+ PKG_CHECK_MODULES(MEEGO,
[
mx-gtk-1.0
- ], have_moblin="yes", have_moblin="no")
+ ], have_meego="yes", have_meego="no")
- if test "x$have_moblin" = "xyes"; then
- AC_DEFINE(HAVE_MOBLIN, 1, [Define if you have moblin])
+ if test "x$have_meego" = "xyes"; then
+ AC_DEFINE(HAVE_MEEGO, 1, [Define if you have meego])
fi
else
- have_moblin="no"
+ have_meego="no"
fi
-if test "x$enable_moblin" = "xyes" -a "x$have_moblin" != "xyes"; then
- AC_MSG_ERROR([Couldn't find moblin dependencies.])
+if test "x$enable_meego" = "xyes" -a "x$have_meego" != "xyes"; then
+ AC_MSG_ERROR([Couldn't find meego dependencies.])
fi
-AM_CONDITIONAL(HAVE_MOBLIN, test "x$have_moblin" = "xyes")
-AC_SUBST(MOBLIN_CFLAGS)
-AC_SUBST(MOBLIN_LIBS)
+AM_CONDITIONAL(HAVE_MEEGO, test "x$have_meego" = "xyes")
+AC_SUBST(MEEGO_CFLAGS)
+AC_SUBST(MEEGO_LIBS)
# -----------------------------------------------------------
# nautilus-sendto
@@ -525,7 +525,7 @@ Configure summary:
Display maps (libchamplain).: ${have_libchamplain}
Location awareness (Geoclue): ${have_geoclue}
Adium themes (Webkit).......: ${have_webkit}
- Moblin widgets .............: ${have_moblin}
+ Meego widgets ..............: ${have_meego}
Control center embedding....: ${have_control_center_embedding}
Connectivity:
diff --git a/libempathy-gtk/Makefile.am b/libempathy-gtk/Makefile.am
index 5015e0a04..674579a22 100644
--- a/libempathy-gtk/Makefile.am
+++ b/libempathy-gtk/Makefile.am
@@ -11,7 +11,7 @@ AM_CPPFLAGS = \
$(ENCHANT_CFLAGS) \
$(LIBCHAMPLAIN_CFLAGS) \
$(GEOCLUE_CFLAGS) \
- $(MOBLIN_CFLAGS) \
+ $(MEEGO_CFLAGS) \
$(WEBKIT_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)
@@ -132,7 +132,7 @@ libempathy_gtk_la_LIBADD = \
$(ENCHANT_LIBS) \
$(LIBCHAMPLAIN_LIBS) \
$(GEOCLUE_LIBS) \
- $(MOBLIN_LIBS) \
+ $(MEEGO_LIBS) \
$(WEBKIT_LIBS) \
$(top_builddir)/libempathy/libempathy.la
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 872a883cd..b12e25683 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -30,9 +30,9 @@
#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
#include <mx/mx-gtk.h>
-#endif
+#endif /* HAVE_MEEGO */
#include <libempathy/empathy-utils.h>
@@ -745,13 +745,13 @@ account_widget_applied_cb (GObject *source_object,
gboolean enabled_checked;
enabled_checked =
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
mx_gtk_light_switch_get_active (
MX_GTK_LIGHT_SWITCH (priv->enabled_checkbox));
#else
gtk_toggle_button_get_active (
GTK_TOGGLE_BUTTON (priv->enabled_checkbox));
-#endif
+#endif /* HAVE_MEEGO */
if (tp_account_is_enabled (account) && enabled_checked)
{
@@ -1330,34 +1330,34 @@ empathy_account_widget_enabled_cb (TpAccount *account,
if (priv->enabled_checkbox != NULL)
{
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
mx_gtk_light_switch_set_active (
MX_GTK_LIGHT_SWITCH (priv->enabled_checkbox),
enabled);
#else
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->enabled_checkbox),
enabled);
-#endif /* HAVE_MOBLIN */
+#endif /* HAVE_MEEGO */
}
}
static void
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
account_widget_switch_flipped_cb (MxGtkLightSwitch *sw,
gboolean state,
gpointer user_data)
#else
account_widget_enabled_released_cb (GtkToggleButton *toggle_button,
gpointer user_data)
-#endif /* HAVE_MOBLIN */
+#endif /* HAVE_MEEGO */
{
EmpathyAccountWidgetPriv *priv = GET_PRIV (user_data);
TpAccount *account;
-#ifndef HAVE_MOBLIN
+#ifndef HAVE_MEEGO
gboolean state;
state = gtk_toggle_button_get_active (toggle_button);
-#endif
+#endif /* HAVE_MEEGO */
account = empathy_account_settings_get_account (priv->settings);
@@ -1496,11 +1496,11 @@ add_enable_checkbox (EmpathyAccountWidget *self,
TpAccount *account)
{
EmpathyAccountWidgetPriv *priv = GET_PRIV (self);
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
GtkWidget *w;
#else
GtkWidget *vbox = self->ui_details->widget;
-#endif
+#endif /* HAVE_MEEGO */
guint nb_rows, nb_columns;
gboolean is_enabled;
@@ -1510,7 +1510,7 @@ add_enable_checkbox (EmpathyAccountWidget *self,
is_enabled = tp_account_is_enabled (account);
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
w = gtk_label_new (_("Account:"));
gtk_misc_set_alignment (GTK_MISC (w), 0, 0.5);
@@ -1526,7 +1526,7 @@ add_enable_checkbox (EmpathyAccountWidget *self,
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->enabled_checkbox),
is_enabled);
-#endif /* HAVE_MOBLIN */
+#endif /* HAVE_MEEGO */
g_object_get (priv->table_common_settings, "n-rows", &nb_rows,
"n-columns", &nb_columns, NULL);
@@ -1534,7 +1534,7 @@ add_enable_checkbox (EmpathyAccountWidget *self,
gtk_table_resize (GTK_TABLE (priv->table_common_settings), ++nb_rows,
nb_columns);
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
gtk_table_attach (GTK_TABLE (priv->table_common_settings),
w,
0, 1, nb_rows - 1, nb_rows,
@@ -1546,21 +1546,21 @@ add_enable_checkbox (EmpathyAccountWidget *self,
#else
gtk_box_pack_start (GTK_BOX (vbox), priv->enabled_checkbox, FALSE, FALSE, 0);
gtk_box_reorder_child (GTK_BOX (vbox), priv->enabled_checkbox, 0);
-#endif /* HAVE_MOBLIN */
+#endif /* HAVE_MEEGO */
gtk_widget_show (priv->enabled_checkbox);
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
g_signal_connect (G_OBJECT (priv->enabled_checkbox), "switch-flipped",
G_CALLBACK (account_widget_switch_flipped_cb), self);
#else
g_signal_connect (G_OBJECT (priv->enabled_checkbox), "released",
G_CALLBACK (account_widget_enabled_released_cb), self);
-#endif /* HAVE_MOBLIN */
+#endif /* HAVE_MEEGO */
}
-#ifndef HAVE_MOBLIN
-/* Moblin doesn't support registration */
+#ifndef HAVE_MEEGO
+/* Meego doesn't support registration */
static void
add_register_buttons (EmpathyAccountWidget *self,
TpAccount *account)
@@ -1599,7 +1599,7 @@ add_register_buttons (EmpathyAccountWidget *self,
gtk_widget_show (priv->radiobutton_reuse);
gtk_widget_show (radiobutton_register);
}
-#endif
+#endif /* HAVE_MEEGO */
static void
do_constructed (GObject *obj)
@@ -1745,9 +1745,9 @@ do_constructed (GObject *obj)
G_CALLBACK (empathy_account_widget_enabled_cb), self);
}
-#ifndef HAVE_MOBLIN
+#ifndef HAVE_MEEGO
add_register_buttons (self, account);
-#endif
+#endif /* HAVE_MEEGO */
add_enable_checkbox (self, account);
/* hook up to widget destruction to unref ourselves */
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index f6aaf07ed..e34903f12 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1112,7 +1112,7 @@ accounts_dialog_button_remove_clicked_cb (GtkWidget *button,
accounts_dialog_remove_account_iter (dialog, &iter);
}
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
static void
accounts_dialog_view_delete_activated_cb (EmpathyCellRendererActivatable *cell,
const gchar *path_string,
@@ -1128,7 +1128,7 @@ accounts_dialog_view_delete_activated_cb (EmpathyCellRendererActivatable *cell,
accounts_dialog_remove_account_iter (dialog, &iter);
}
-#endif
+#endif /* HAVE_MEEGO */
static void
accounts_dialog_model_add_columns (EmpathyAccountsDialog *dialog)
@@ -1181,7 +1181,7 @@ accounts_dialog_model_add_columns (EmpathyAccountsDialog *dialog)
dialog);
g_object_set (cell, "ypad", 4, NULL);
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
/* Delete column */
cell = empathy_cell_renderer_activatable_new ();
gtk_tree_view_column_pack_start (column, cell, FALSE);
@@ -1193,7 +1193,7 @@ accounts_dialog_model_add_columns (EmpathyAccountsDialog *dialog)
g_signal_connect (cell, "path-activated",
G_CALLBACK (accounts_dialog_view_delete_activated_cb),
dialog);
-#endif
+#endif /* HAVE_MEEGO */
}
static EmpathyAccountSettings *
@@ -1921,10 +1921,10 @@ accounts_dialog_build_ui (EmpathyAccountsDialog *dialog)
action_area = gtk_dialog_get_action_area (GTK_DIALOG (dialog));
-#ifdef HAVE_MOBLIN
+#ifdef HAVE_MEEGO
gtk_widget_hide (action_area);
gtk_widget_hide (priv->button_remove);
-#endif
+#endif /* HAVE_MEEGO */
/* Remove button is unsensitive until we have a selected account */
gtk_widget_set_sensitive (priv->button_remove, FALSE);