Assamese translation updated
[platform/upstream/evolution-data-server.git] / libedataserverui / e-source-combo-box.h
index e43ac8e..94d92e7 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef _E_SOURCE_COMBO_BOX_H_
-#define _E_SOURCE_COMBO_BOX_H_
+#if !defined (__LIBEDATASERVERUI_H_INSIDE__) && !defined (LIBEDATASERVERUI_COMPILATION)
+#error "Only <libedataserverui/libedataserverui.h> should be included directly."
+#endif
+
+#ifndef E_SOURCE_COMBO_BOX_H
+#define E_SOURCE_COMBO_BOX_H
 
 #include <gtk/gtk.h>
-#include <libedataserver/e-source-list.h>
+#include <libedataserver/libedataserver.h>
 
 #define E_TYPE_SOURCE_COMBO_BOX \
        (e_source_combo_box_get_type ())
@@ -46,9 +50,13 @@ typedef struct _ESourceComboBox ESourceComboBox;
 typedef struct _ESourceComboBoxClass ESourceComboBoxClass;
 typedef struct _ESourceComboBoxPrivate ESourceComboBoxPrivate;
 
+/**
+ * ESourceComboBox:
+ *
+ * Since: 2.22
+ **/
 struct _ESourceComboBox {
        GtkComboBox parent;
-
        ESourceComboBoxPrivate *priv;
 };
 
@@ -57,23 +65,26 @@ struct _ESourceComboBoxClass {
 };
 
 GType          e_source_combo_box_get_type     (void);
-GtkWidget *    e_source_combo_box_new          (ESourceList *source_list);
-ESourceList *  e_source_combo_box_get_source_list
-                                               (ESourceComboBox *source_combo_box);
-void           e_source_combo_box_set_source_list
-                                               (ESourceComboBox *source_combo_box,
-                                                ESourceList *source_list);
-ESource *      e_source_combo_box_get_active
-                                               (ESourceComboBox *source_combo_box);
-void           e_source_combo_box_set_active
-                                               (ESourceComboBox *source_combo_box,
+GtkWidget *    e_source_combo_box_new          (ESourceRegistry *registry,
+                                                const gchar *extension_name);
+ESourceRegistry *
+               e_source_combo_box_get_registry (ESourceComboBox *combo_box);
+void           e_source_combo_box_set_registry (ESourceComboBox *combo_box,
+                                                ESourceRegistry *registry);
+const gchar *  e_source_combo_box_get_extension_name
+                                               (ESourceComboBox *combo_box);
+void           e_source_combo_box_set_extension_name
+                                               (ESourceComboBox *combo_box,
+                                                const gchar *extension_name);
+gboolean       e_source_combo_box_get_show_colors
+                                               (ESourceComboBox *combo_box);
+void           e_source_combo_box_set_show_colors
+                                               (ESourceComboBox *combo_box,
+                                                gboolean show_colors);
+ESource *      e_source_combo_box_ref_active   (ESourceComboBox *combo_box);
+void           e_source_combo_box_set_active   (ESourceComboBox *combo_box,
                                                 ESource *source);
-const gchar *  e_source_combo_box_get_active_uid
-                                               (ESourceComboBox *source_combo_box);
-void           e_source_combo_box_set_active_uid
-                                               (ESourceComboBox *source_combo_box,
-                                                const gchar *uid);
 
 G_END_DECLS
 
-#endif /* _E_SOURCE_COMBO_BOX_H_ */
+#endif /* E_SOURCE_COMBO_BOX_H */