Changeset 2043
- Timestamp:
- 05/23/07 23:57:38
- Files:
-
- trunk/libtinymail-olpc/tny-olpc-account-store.c (modified) (3 diffs)
- trunk/libtinymail-olpc/tny-olpc-device.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymail-olpc/tny-olpc-account-store.c
r2015 r2043 117 117 118 118 dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, 119 gtktype, GTK_BUTTONS_YES_NO, prompt);119 gtktype, GTK_BUTTONS_YES_NO, error->message); 120 120 121 121 if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES) … … 357 357 358 358 359 360 static void361 tny_olpc_account_store_add_account (TnyAccountStore *self, TnyAccount *account, const gchar *type)362 {363 g_warning ("Not implemented\n");364 365 return;366 }367 368 369 370 void371 tny_olpc_account_store_add_store_account (TnyOlpcAccountStore *self, TnyStoreAccount *account)372 {373 TnyOlpcAccountStorePriv *priv = TNY_OLPC_ACCOUNT_STORE_GET_PRIVATE (self);374 375 tny_olpc_account_store_add_account (TNY_ACCOUNT_STORE (self), TNY_ACCOUNT (account), "store");376 377 g_signal_emit (self, tny_account_store_signals [TNY_ACCOUNT_STORE_ACCOUNT_INSERTED], 0, account);378 379 return;380 }381 382 void383 tny_olpc_account_store_add_transport_account (TnyOlpcAccountStore *self, TnyTransportAccount *account)384 {385 TnyOlpcAccountStorePriv *priv = TNY_OLPC_ACCOUNT_STORE_GET_PRIVATE (self);386 387 tny_olpc_account_store_add_account (TNY_ACCOUNT_STORE (self), TNY_ACCOUNT (account), "transport");388 389 g_signal_emit (self, tny_account_store_signals [TNY_ACCOUNT_STORE_ACCOUNT_INSERTED], 0, account);390 391 return;392 }393 394 359 static TnyDevice* 395 360 tny_olpc_account_store_get_device (TnyAccountStore *self) … … 485 450 486 451 klass->get_accounts_func = tny_olpc_account_store_get_accounts; 487 klass->add_store_account_func = tny_olpc_account_store_add_store_account;488 klass->add_transport_account_func = tny_olpc_account_store_add_transport_account;489 452 klass->get_cache_dir_func = tny_olpc_account_store_get_cache_dir; 490 453 klass->get_device_func = tny_olpc_account_store_get_device; trunk/libtinymail-olpc/tny-olpc-device.c
r1860 r2043 36 36 emit_status (TnyDevice *self) 37 37 { 38 if (tny_ gnome_device_is_online (self))39 tny_ gnome_device_on_online (self);38 if (tny_olpc_device_is_online (self)) 39 tny_olpc_device_on_online (self); 40 40 else 41 tny_ gnome_device_on_offline (self);41 tny_olpc_device_on_offline (self); 42 42 } 43 43 … … 47 47 TnyOlpcDevicePriv *priv = TNY_OLPC_DEVICE_GET_PRIVATE (self); 48 48 49 const gboolean status_before = tny_ gnome_device_is_online (self);49 const gboolean status_before = tny_olpc_device_is_online (self); 50 50 51 51 priv->fset = FALSE; … … 53 53 54 54 /* Signal if it changed: */ 55 if (status_before != tny_ gnome_device_is_online (self))55 if (status_before != tny_olpc_device_is_online (self)) 56 56 emit_status (self); 57 57 } … … 63 63 TnyOlpcDevicePriv *priv = TNY_OLPC_DEVICE_GET_PRIVATE (self); 64 64 65 const gboolean already_online = tny_ gnome_device_is_online (self);65 const gboolean already_online = tny_olpc_device_is_online (self); 66 66 67 67 priv->fset = TRUE; … … 81 81 TnyOlpcDevicePriv *priv = TNY_OLPC_DEVICE_GET_PRIVATE (self); 82 82 83 const gboolean already_offline = !tny_ gnome_device_is_online (self);83 const gboolean already_offline = !tny_olpc_device_is_online (self); 84 84 85 85 priv->fset = TRUE;
