if test "x$enable_moblin" != "xno"; then
PKG_CHECK_MODULES(MOBLIN,
- [nbtk-gtk-1.2], have_nbtk="yes", have_nbtk="no")
+ [
+ nbtk-gtk-1.2
+ ], have_moblin="yes", have_moblin="no")
- if test "x$have_nbtk" = "xyes"; then
- AC_DEFINE(HAVE_NBTK, 1, [Define if you have nbtk])
+ if test "x$have_moblin" = "xyes"; then
+ AC_DEFINE(HAVE_MOBLIN, 1, [Define if you have moblin])
fi
else
- have_nbtk="no"
+ have_moblin="no"
fi
-if test "x$enable_moblin" = "xyes" -a "x$have_nbtk" != "xyes"; then
+if test "x$enable_moblin" = "xyes" -a "x$have_moblin" != "xyes"; then
AC_MSG_ERROR([Couldn't find moblin dependencies.])
fi
-AM_CONDITIONAL(HAVE_NBTK, test "x$have_nbtk" = "xyes")
+AM_CONDITIONAL(HAVE_MOBLIN, test "x$have_moblin" = "xyes")
AC_SUBST(MOBLIN_CFLAGS)
AC_SUBST(MOBLIN_LIBS)
Display maps (libchamplain).: ${have_libchamplain}
Location awareness (Geoclue): ${have_geoclue}
Adium themes (Webkit).......: ${have_webkit}
- Moblin widgets (Nbtk).......: ${have_nbtk}
+ Moblin widgets .............: ${have_moblin}
Connectivity:
NetworkManager integration..: ${have_nm}
#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>
-#ifdef HAVE_NBTK
+#ifdef HAVE_MOBLIN
#include <nbtk/nbtk-gtk.h>
#endif
gboolean enabled_checked;
enabled_checked =
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
gtk_toggle_button_get_active (
GTK_TOGGLE_BUTTON (priv->enabled_checkbox));
#else
if (priv->enabled_checkbox != NULL)
{
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->enabled_checkbox),
enabled);
#else
nbtk_gtk_light_switch_set_active (
NBTK_GTK_LIGHT_SWITCH (priv->enabled_checkbox),
enabled);
-#endif /* HAVE_NBTK */
+#endif /* HAVE_MOBLIN */
}
}
static void
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
account_widget_enabled_released_cb (GtkToggleButton *toggle_button,
gpointer user_data)
#else
account_widget_switch_flipped_cb (NbtkGtkLightSwitch *sw,
gboolean state,
gpointer user_data)
-#endif /* HAVE_NBTK */
+#endif /* HAVE_MOBLIN */
{
EmpathyAccountWidgetPriv *priv = GET_PRIV (user_data);
EmpathyAccount *account;
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
gboolean state;
state = gtk_toggle_button_get_active (toggle_button);
priv->apply_button = gtk_button_new_from_stock (
priv->creating_account ? GTK_STOCK_CONNECT : GTK_STOCK_APPLY);
-#ifdef HAVE_NBTK
+#ifdef HAVE_MOBLIN
if (priv->creating_account)
/* Translators: this is used only when built on a moblin platform */
gtk_button_set_label (GTK_BUTTON (priv->apply_button),
/* handle the "Enabled" checkbox. We only add it when modifying an account */
if (!priv->creating_account && priv->table_common_settings != NULL)
{
-#ifdef HAVE_NBTK
+#ifdef HAVE_MOBLIN
GtkWidget *w;
#endif
guint nb_rows, nb_columns;
is_enabled = empathy_account_is_enabled (account);
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
priv->enabled_checkbox =
gtk_check_button_new_with_label (_("Enabled"));
NBTK_GTK_LIGHT_SWITCH (priv->enabled_checkbox), is_enabled);
gtk_widget_show (w);
-#endif /* HAVE_NBTK */
+#endif /* HAVE_MOBLIN */
g_object_get (priv->table_common_settings, "n-rows", &nb_rows,
"n-columns", &nb_columns, NULL);
gtk_table_resize (GTK_TABLE (priv->table_common_settings), ++nb_rows,
nb_columns);
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
gtk_table_attach (GTK_TABLE (priv->table_common_settings),
priv->enabled_checkbox,
0, nb_columns, nb_rows - 1, nb_rows,
priv->enabled_checkbox,
1, nb_columns, nb_rows - 1, nb_rows,
GTK_EXPAND | GTK_FILL, 0, 0, 0);
-#endif /* HAVE_NBTK */
+#endif /* HAVE_MOBLIN */
gtk_widget_show (priv->enabled_checkbox);
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
g_signal_connect (G_OBJECT (priv->enabled_checkbox), "released",
G_CALLBACK (account_widget_enabled_released_cb), self);
#else
g_signal_connect (G_OBJECT (priv->enabled_checkbox), "switch-flipped",
G_CALLBACK (account_widget_switch_flipped_cb), self);
-#endif /* HAVE_NBTK */
+#endif /* HAVE_MOBLIN */
}
/* hook up to widget destruction to unref ourselves */
return;
}
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
if (tp_connection_manager_protocol_can_register (proto) && !is_gtalk)
{
gtk_widget_show (priv->radiobutton_register);
}
question_dialog_primary_text = g_strdup_printf (
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
_("You are about to remove your %s account!\n"
"Are you sure you want to proceed?"),
#else
/* Translators: this is used only when built on a moblin platform */
_("Do you want to remove %s from your computer?"),
-#endif /* HAVE_NBTK */
+#endif /* HAVE_MOBLIN */
empathy_account_get_display_name (account));
accounts_dialog_show_question_dialog (dialog, question_dialog_primary_text,
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
_("Any associated conversations and chat rooms will NOT be "
"removed if you decide to proceed.\n"
"\n"
#else
/* Translators: this is used only when built on a moblin platform */
_("This will not remove your account on the server."),
-#endif /* HAVE_NBTK */
+#endif /* HAVE_MOBLIN */
G_CALLBACK (accounts_dialog_delete_account_response_cb),
dialog,
GTK_STOCK_CANCEL, GTK_RESPONSE_NO,
accounts_dialog_model_pixbuf_data_func,
dialog,
NULL);
-#ifdef HAVE_NBTK
+#ifdef HAVE_MOBLIN
g_object_set (cell, "ypad", 4, NULL);
#endif
gtk_tree_view_column_pack_start (column, cell, FALSE);
g_object_set (cell,
"icon-name", GTK_STOCK_DELETE,
-#ifdef HAVE_NBTK
+#ifdef HAVE_MOBLIN
"show-on-select", TRUE,
#endif
NULL);
g_free (str);
-#ifndef HAVE_NBTK
+#ifndef HAVE_MOBLIN
if (tp_connection_manager_protocol_can_register (proto))
{
gboolean active;
GtkBuilder *gui;
gchar *filename;
EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog);
-#ifdef HAVE_NBTK
+#ifdef HAVE_MOBLIN
GtkWidget *action_area;
#endif
g_object_unref (gui);
-#ifdef HAVE_NBTK
+#ifdef HAVE_MOBLIN
action_area = gtk_dialog_get_action_area (GTK_DIALOG (priv->window));
gtk_widget_hide (action_area);