Changeset 865
- Timestamp:
- 09/03/06 12:17:14
- Files:
-
- trunk/ChangeLog (modified) (18 diffs)
- trunk/bindings/python/Makefile.am (modified) (1 diff)
- trunk/bindings/python/tinymailui-gtk.override (modified) (1 diff)
- trunk/docs/devel/reference/tmpl/tny-gtk-save-strategy.sgml (moved) (moved from trunk/docs/devel/reference/tmpl/tny-save-strategy.sgml) (2 diffs)
- trunk/libtinymail-gnome-desktop/tny-platform-factory.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/Makefile.am (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-gtk-save-strategy.c (moved) (moved from trunk/libtinymailui-gtk/tny-save-strategy.c) (12 diffs)
- trunk/libtinymailui-gtk/tny-gtk-save-strategy.h (moved) (moved from trunk/libtinymailui-gtk/tny-save-strategy.h) (3 diffs)
- trunk/tests/shared/platfact.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r861 r865 1 2006-09-01 Philip Van Hoof <pvanhoof@gnome.org> 1 2006-09-03 Philip Van Hoof <pvanhoof@gnome.org> 2 3 * Renamed TnySaveStrategy to TnyGtkSaveStrategy 4 5 * This was a major API change in libtinymailui-gtk 6 7 2006-09-01 Philip Van Hoof <pvanhoof@gnome.org> 2 8 3 9 * Renamed TnyHeaderView to TnyGtkHeaderView 4 10 5 * This was a major API change 11 * This was a major API change in libtinymailui-gtk 6 12 7 13 2006-08-31 Philip Van Hoof <pvanhoof@gnome.org> … … 10 16 committed it. 11 17 12 * These fixes too where a major API change 18 * These fixes too where a major API change in libtinymailui-gtk 13 19 14 20 2006-08-31 Thomas Hisch <t.hisch@gmail.com> … … 17 23 * Renamed TnyMsgWindow to TnyGtkMsgWindow 18 24 19 * This was a major API change 25 * This was a major API change in libtinymailui-gtk 20 26 21 27 2006-08-31 Philip Van Hoof <pvanhoof@gnome.org> … … 34 40 and TnyCamelNNTPFolder 35 41 36 * This was a major API change 42 * This was a major API change in libtinymail-camel 37 43 38 44 2006-08-30 Thomas Hisch <t.hisch@gmail.com> … … 40 46 * Renamed TnyHeader to TnyCamelHeader 41 47 42 * This was a major API change 48 * This was a major API change in libtinymail-camel 43 49 44 50 2006-08-30 Philip Van Hoof <pvanhoof@gnome.org> … … 55 61 * Renamed TnyFolder to TnyCamelFolder 56 62 57 * This was a major API change 63 * This was a major API change in libtinymail-camel 58 64 59 65 2006-08-29 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> … … 83 89 * Support for non-mainloop _async methods 84 90 85 * This was a major API change 91 * This was a major API change in all 86 92 87 93 2006-08-27 Philip Van Hoof <pvanhoof@gnome.org> … … 108 114 * Added the tny_msg_view_iface_clear API 109 115 110 * This was a major API change 116 * This was a major API change in libtinymailui and libtinymailui-gtk 111 117 112 118 2006-08-25 Philip Van Hoof <pvanhoof@gnome.org> … … 132 138 ui-gtk and ui-mozembed. 133 139 134 * This was a major API change 140 * This was a major API change in all 135 141 136 142 2006-08-24 Philip Van Hoof <pvanhoof@gnome.org> … … 146 152 The new get-folders API 147 153 148 * This was a major API change 154 * This was a major API change in all 149 155 150 156 2006-08-23 Philip Van Hoof <pvanhoof@gnome.org> … … 157 163 * API documentation of TnyFolderIface 158 164 159 * This was a major API change 165 * This was a major API change in all 160 166 161 167 2006-08-22 Philip Van Hoof <pvanhoof@gnome.org> … … 169 175 * Moved the Python demo to tests/python-demo 170 176 171 * This was a major API change 177 * This was a major API change in all 172 178 173 179 2006-08-08 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> … … 177 183 * misc small fixes (-Wall -Wextra helps...) 178 184 179 * This was a major API change 185 * This was a major API change in all 180 186 181 187 2006-08-01 Philip Van Hoof <pvanhoof@gnome.org> … … 193 199 * Improved the enums (GType'ed them) 194 200 195 * This was a major API change 201 * This was a minor API change in all but a major one for language 202 bindings 196 203 197 204 2006-07-29 Philip Van Hoof <pvanhoof@gnome.org> … … 229 236 * Added support for XEmbed and command-line parameters in the demo-ui 230 237 231 * This was a major API change 238 * This was a major API change in libtinymailui and libtinymailui-gtk 232 239 233 240 2006-06-09 Dirk-Jan C. Binnema <dirk-jan.binnema@nokia.com> … … 235 242 * tny_iterator_iface_is_end method 236 243 237 * This was a major API change 244 * This was a major API change in all 238 245 239 246 2006-06-07 Philip Van Hoof <pvanhoof@gnome.org> … … 241 248 * Major API changes in TnyAccountStore 242 249 243 * This was a major API change 250 * This was a major API change in all 244 251 245 252 2006-06-21 Florian Boor <florian.boor@kernelconcepts.de> … … 280 287 * Tinymail epoch 281 288 282 * This was a major API change 283 289 * This was a major API change in all 290 trunk/bindings/python/Makefile.am
r862 r865 109 109 $(top_srcdir)/libtinymailui-gtk/tny-gtk-msg-view.h \ 110 110 $(top_srcdir)/libtinymailui-gtk/tny-gtk-msg-window.h \ 111 $(top_srcdir)/libtinymailui-gtk/tny- save-strategy.h \111 $(top_srcdir)/libtinymailui-gtk/tny-gtk-save-strategy.h \ 112 112 $(top_srcdir)/libtinymailui-gtk/tny-text-buffer-stream.h | \ 113 113 $(PYTHON) $(top_srcdir)/bindings/python/filter.py --extra=$(top_srcdir)/bindings/python/tinymailui-gtk.defs.extra > $@ trunk/bindings/python/tinymailui-gtk.override
r861 r865 15 15 #include <tny-gtk-msg-view.h> 16 16 #include <tny-gtk-msg-window.h> 17 #include <tny- save-strategy.h>17 #include <tny-gtk-save-strategy.h> 18 18 #include <tny-text-buffer-stream.h> 19 19 trunk/docs/devel/reference/tmpl/tny-gtk-save-strategy.sgml
r858 r865 1 1 <!-- ##### SECTION Title ##### --> 2 Tny SaveStrategy2 TnyGtkSaveStrategy 3 3 4 4 <!-- ##### SECTION Short_Description ##### --> … … 31 31 32 32 33 <!-- ##### FUNCTION tny_ save_strategy_new ##### -->33 <!-- ##### FUNCTION tny_gtk_save_strategy_new ##### --> 34 34 <para> 35 35 trunk/libtinymail-gnome-desktop/tny-platform-factory.c
r863 r865 22 22 23 23 #include <tny-save-strategy-iface.h> 24 #include <tny- save-strategy.h>24 #include <tny-gtk-save-strategy.h> 25 25 26 26 #include <tny-account-store-iface.h> … … 62 62 tny_platform_factory_new_msg_view (TnyPlatformFactoryIface *self) 63 63 { 64 TnySaveStrategyIface *save_strategy = 65 TNY_SAVE_STRATEGY_IFACE (tny_save_strategy_new ()); 64 TnySaveStrategyIface *save_strategy = tny_gtk_save_strategy_new (); 66 65 67 66 #ifdef MOZEMBED trunk/libtinymailui-gtk/Makefile.am
r861 r865 11 11 12 12 libtinymailui_gtk_1_0_headers = \ 13 tny- save-strategy.h \13 tny-gtk-save-strategy.h \ 14 14 tny-gtk-msg-view.h \ 15 15 tny-gtk-msg-window.h \ … … 22 22 libtinymailui_gtk_1_0_la_SOURCES = \ 23 23 $(libtinymailui_gtk_1_0_headers) \ 24 tny- save-strategy.c \24 tny-gtk-save-strategy.c \ 25 25 tny-gtk-msg-view.c \ 26 26 tny-gtk-msg-window.c \ trunk/libtinymailui-gtk/tny-gtk-save-strategy.c
r858 r865 31 31 #include <string.h> 32 32 #include <gtk/gtk.h> 33 #include <tny- save-strategy.h>33 #include <tny-gtk-save-strategy.h> 34 34 #include <tny-text-buffer-stream.h> 35 35 #include <tny-attach-list-model.h> … … 47 47 static GObjectClass *parent_class = NULL; 48 48 49 #define TNY_ SAVE_STRATEGY_GET_PRIVATE(o) \50 (G_TYPE_INSTANCE_GET_PRIVATE ((o), TNY_TYPE_ SAVE_STRATEGY, TnySaveStrategyPriv))49 #define TNY_GTK_SAVE_STRATEGY_GET_PRIVATE(o) \ 50 (G_TYPE_INSTANCE_GET_PRIVATE ((o), TNY_TYPE_GTK_SAVE_STRATEGY, TnyGtkSaveStrategyPriv)) 51 51 52 52 53 53 #ifdef GNOME 54 54 static gboolean 55 save_to_file (const gchar *uri, TnyMimePartIface *part)55 gtk_save_to_file (const gchar *uri, TnyMimePartIface *part) 56 56 { 57 57 GnomeVFSResult result; … … 75 75 #else 76 76 static gboolean 77 save_to_file (const gchar *local_filename, TnyMimePartIface *part)77 gtk_save_to_file (const gchar *local_filename, TnyMimePartIface *part) 78 78 { 79 79 int fd = open (local_filename, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); … … 97 97 98 98 static void 99 tny_ save_strategy_save (TnySaveStrategyIface *self, TnyMimePartIface *part)99 tny_gtk_save_strategy_save (TnySaveStrategyIface *self, TnyMimePartIface *part) 100 100 { 101 101 GtkFileChooserDialog *dialog; … … 131 131 if (uri) 132 132 { 133 if (! save_to_file (uri, part))133 if (!gtk_save_to_file (uri, part)) 134 134 { 135 135 gtk_widget_destroy (GTK_WIDGET (dialog)); … … 157 157 158 158 /** 159 * tny_ save_strategy_new:159 * tny_gtk_save_strategy_new: 160 160 * 161 161 * 162 162 * Return value: a new #TnySaveStrategyIface instance implemented for Gtk+ 163 163 **/ 164 TnySaveStrategy *165 tny_ save_strategy_new (void)166 { 167 Tny SaveStrategy *self = g_object_new (TNY_TYPE_SAVE_STRATEGY, NULL);168 169 return self;170 } 171 172 static void 173 tny_ save_strategy_instance_init (GTypeInstance *instance, gpointer g_class)174 { 175 return; 176 } 177 178 static void 179 tny_ save_strategy_finalize (GObject *object)164 TnySaveStrategyIface* 165 tny_gtk_save_strategy_new (void) 166 { 167 TnyGtkSaveStrategy *self = g_object_new (TNY_TYPE_GTK_SAVE_STRATEGY, NULL); 168 169 return TNY_SAVE_STRATEGY_IFACE (self); 170 } 171 172 static void 173 tny_gtk_save_strategy_instance_init (GTypeInstance *instance, gpointer g_class) 174 { 175 return; 176 } 177 178 static void 179 tny_gtk_save_strategy_finalize (GObject *object) 180 180 { 181 181 (*parent_class->finalize) (object); … … 185 185 186 186 static void 187 tny_ save_strategy_iface_init (gpointer g_iface, gpointer iface_data)187 tny_gtk_save_strategy_iface_init (gpointer g_iface, gpointer iface_data) 188 188 { 189 189 TnySaveStrategyIfaceClass *klass = (TnySaveStrategyIfaceClass *)g_iface; 190 190 191 klass->save_func = tny_ save_strategy_save;191 klass->save_func = tny_gtk_save_strategy_save; 192 192 193 193 return; … … 195 195 196 196 static void 197 tny_ save_strategy_class_init (TnySaveStrategyClass *class)197 tny_gtk_save_strategy_class_init (TnyGtkSaveStrategyClass *class) 198 198 { 199 199 GObjectClass *object_class; … … 202 202 object_class = (GObjectClass*) class; 203 203 204 object_class->finalize = tny_ save_strategy_finalize;204 object_class->finalize = tny_gtk_save_strategy_finalize; 205 205 206 206 return; … … 208 208 209 209 GType 210 tny_ save_strategy_get_type (void)210 tny_gtk_save_strategy_get_type (void) 211 211 { 212 212 static GType type = 0; … … 216 216 static const GTypeInfo info = 217 217 { 218 sizeof (Tny SaveStrategyClass),218 sizeof (TnyGtkSaveStrategyClass), 219 219 NULL, /* base_init */ 220 220 NULL, /* base_finalize */ 221 (GClassInitFunc) tny_ save_strategy_class_init, /* class_init */221 (GClassInitFunc) tny_gtk_save_strategy_class_init, /* class_init */ 222 222 NULL, /* class_finalize */ 223 223 NULL, /* class_data */ 224 sizeof (Tny SaveStrategy),224 sizeof (TnyGtkSaveStrategy), 225 225 0, /* n_preallocs */ 226 tny_ save_strategy_instance_init, /* instance_init */226 tny_gtk_save_strategy_instance_init, /* instance_init */ 227 227 NULL 228 228 }; 229 229 230 static const GInterfaceInfo tny_ save_strategy_iface_info =230 static const GInterfaceInfo tny_gtk_save_strategy_iface_info = 231 231 { 232 (GInterfaceInitFunc) tny_ save_strategy_iface_init, /* interface_init */232 (GInterfaceInitFunc) tny_gtk_save_strategy_iface_init, /* interface_init */ 233 233 NULL, /* interface_finalize */ 234 234 NULL /* interface_data */ … … 236 236 237 237 type = g_type_register_static (G_TYPE_OBJECT, 238 "Tny SaveStrategy",238 "TnyGtkSaveStrategy", 239 239 &info, 0); 240 240 241 241 g_type_add_interface_static (type, TNY_TYPE_SAVE_STRATEGY_IFACE, 242 &tny_ save_strategy_iface_info);242 &tny_gtk_save_strategy_iface_info); 243 243 244 244 } trunk/libtinymailui-gtk/tny-gtk-save-strategy.h
r858 r865 1 #ifndef TNY_ SAVE_STRATEGY_H2 #define TNY_ SAVE_STRATEGY_H1 #ifndef TNY_GTK_SAVE_STRATEGY_H 2 #define TNY_GTK_SAVE_STRATEGY_H 3 3 4 4 /* libtinymailui-gtk - The Tiny Mail UI library for Gtk+ … … 28 28 G_BEGIN_DECLS 29 29 30 #define TNY_TYPE_ SAVE_STRATEGY (tny_save_strategy_get_type ())31 #define TNY_ SAVE_STRATEGY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TNY_TYPE_SAVE_STRATEGY, TnySaveStrategy))32 #define TNY_ SAVE_STRATEGY_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), TNY_TYPE_SAVE_STRATEGY, TnySaveStrategyClass))33 #define TNY_IS_ SAVE_STRATEGY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TNY_TYPE_SAVE_STRATEGY))34 #define TNY_IS_ SAVE_STRATEGY_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TNY_TYPE_SAVE_STRATEGY))35 #define TNY_ SAVE_STRATEGY_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), TNY_TYPE_SAVE_STRATEGY, TnySaveStrategyClass))30 #define TNY_TYPE_GTK_SAVE_STRATEGY (tny_gtk_save_strategy_get_type ()) 31 #define TNY_GTK_SAVE_STRATEGY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TNY_TYPE_GTK_SAVE_STRATEGY, TnyGtkSaveStrategy)) 32 #define TNY_GTK_SAVE_STRATEGY_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), TNY_TYPE_GTK_SAVE_STRATEGY, TnyGtkSaveStrategyClass)) 33 #define TNY_IS_GTK_SAVE_STRATEGY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TNY_TYPE_GTK_SAVE_STRATEGY)) 34 #define TNY_IS_GTK_SAVE_STRATEGY_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TNY_TYPE_GTK_SAVE_STRATEGY)) 35 #define TNY_GTK_SAVE_STRATEGY_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), TNY_TYPE_GTK_SAVE_STRATEGY, TnyGtkSaveStrategyClass)) 36 36 37 typedef struct _Tny SaveStrategy TnySaveStrategy;38 typedef struct _Tny SaveStrategyClass TnySaveStrategyClass;37 typedef struct _TnyGtkSaveStrategy TnyGtkSaveStrategy; 38 typedef struct _TnyGtkSaveStrategyClass TnyGtkSaveStrategyClass; 39 39 40 struct _Tny SaveStrategy40 struct _TnyGtkSaveStrategy 41 41 { 42 42 GObject parent; … … 44 44 }; 45 45 46 struct _Tny SaveStrategyClass46 struct _TnyGtkSaveStrategyClass 47 47 { 48 48 GObjectClass parent_class; 49 49 }; 50 50 51 GType tny_save_strategy_get_type(void);52 TnySaveStrategy * tny_save_strategy_new(void);51 GType tny_gtk_save_strategy_get_type (void); 52 TnySaveStrategyIface* tny_gtk_save_strategy_new (void); 53 53 54 54 G_END_DECLS trunk/tests/shared/platfact.c
r857 r865 22 22 23 23 #include <tny-save-strategy-iface.h> 24 #include <tny- save-strategy.h>24 #include <tny-gtk-save-strategy.h> 25 25 26 26 #include <tny-account-store-iface.h> … … 58 58 tny_platform_factory_new_msg_view (TnyPlatformFactoryIface *self) 59 59 { 60 TnySaveStrategyIface *save_strategy = 61 TNY_SAVE_STRATEGY_IFACE (tny_save_strategy_new ()); 60 TnySaveStrategyIface *save_strategy = tny_gtk_save_strategy_new (); 62 61 63 62 return TNY_MSG_VIEW_IFACE (tny_gtk_msg_view_new (save_strategy));
