2 * Copyright (C) 2009 Intel Corporation
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) version 3.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 #include "sync-ui-config.h"
28 #define SYNC_UI_LIST_ICON_SIZE 32
29 #define SYNC_UI_LIST_BTN_WIDTH 150
31 typedef enum SyncErrorResponse {
32 SYNC_ERROR_RESPONSE_NONE,
33 SYNC_ERROR_RESPONSE_SETTINGS_SELECT,
34 SYNC_ERROR_RESPONSE_SETTINGS_OPEN,
35 SYNC_ERROR_RESPONSE_EMERGENCY,
39 char* get_pretty_source_name (const char *source_name);
40 char* get_error_string_for_code (int error_code, SyncErrorResponse *response);
41 void show_error_dialog (GtkWidget *widget, const char* message);
43 GtkWidget* sync_ui_create_main_window ();