aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-instance.c
Commit message (Collapse)AuthorAgeFilesLines
* don't issue the display view signal a second time, connect_view does thisJP Rosevear2004-04-061-1/+0
| | | | | | | | | | 2004-04-05 JP Rosevear <jpr@ximian.com> * gal-view-instance.c (gal_view_instance_set_current_view_id): don't issue the display view signal a second time, connect_view does this for us svn path=/trunk/; revision=25324
* Disable debugging messages.Ettore Perazzoli2003-05-161-1/+1
| | | | | | | | * gal-view-collection.c (d): Disable debugging messages. * gal-view-instance.c (d): Disable debugging messages. svn path=/trunk/; revision=21198
* Try stat'ing the file before loading it with xmlParseFile() to avoidJeffrey Stedfast2003-04-251-4/+6
| | | | | | | | | | 2003-04-23 Jeffrey Stedfast <fejj@ximian.com> * gal-view-instance.c (load_current_view): Try stat'ing the file before loading it with xmlParseFile() to avoid warnign spewage from libxml2 saying that the file doesn't exist. svn path=/trunk/; revision=20955
* Free the id when we're done with it.Hans Petter Jansson2003-04-161-0/+3
| | | | | | | | | 2003-04-15 Hans Petter Jansson <hpj@ximian.com> * gal-view-instance.c (gal_view_instance_get_popup_menu): Free the id when we're done with it. svn path=/trunk/; revision=20854
* use stock buttons, remove desc frame. #if out the copy button. addMike Kestner2003-04-111-1/+1
| | | | | | | | | | | 2003-04-10 Mike Kestner <mkestner@ximian.com> * gal-define-views.glade : use stock buttons, remove desc frame. * gal-define-views-dialog.c (gdvd_init): #if out the copy button. * gal-view-instance.c (g_v_i_get_popup_menu): add ellipsis to Define Views menuitem. svn path=/trunk/; revision=20804
* Use glib macro G_GNUC_FUNCTION instead of __FUNCTION__. Thank u, Ettore.Sanshao Jiang2003-03-221-4/+5
| | | | | | | | | | | | | | | 2003-03-19 Sanshao Jiang <alex.jiang@sun.com> * gal-view-collection.c (gal_view_collection_append_with_title): (gal_view_collection_set_nth_view): Use glib macro G_GNUC_FUNCTION instead of __FUNCTION__. Thank u, Ettore. * gal-view-instance.c (gal_view_instance_set_current_view_id): same (add_popup_radio_item): Fix to be compilable on other compilers, using gcc extension independent codes.(bug#39176) (add_popup_menu_item): same svn path=/trunk/; revision=20455
* use access() like camelMike Kestner2003-03-151-1/+3
| | | | | | | | | | | | | | | 2003-03-14 Mike Kestner <mkestner@ximian.com> * gal/util/e-util.c (e_mkdir_hier): use access() like camel 2003-03-14 Mike Kestner <mkestner@ximian.com> * gal-view-collection.c (gal_view_collection_load): check failure on e_create_directory call and warn. * gal-view-instance.c (save_current_view): check for failure and warn. svn path=/trunk/; revision=20291
* Here too.Jeffrey Stedfast2003-01-161-1/+1
| | | | | | | | | | | 2003-01-15 Jeffrey Stedfast <fejj@ximian.com> * gal-view-instance.c (save_current_view): Here too. * gal-view-collection.c (gal_view_collection_save): Use e_xml_save_file(). svn path=/trunk/; revision=19479
* protect against null instance_id's (bug#35540)Mike Kestner2002-12-141-1/+5
| | | | | | | | | 2002-12-13 Mike Kestner <mkestner@ximian.com> * gal-view-instance.c (gal_view_instance_construct): protect against null instance_id's (bug#35540) svn path=/trunk/; revision=19118
* convert some GnomeDialog stuff to GtkDialog.Chris Toshok2002-11-171-11/+10
| | | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gal-view-instance.c: convert some GnomeDialog stuff to GtkDialog. * gal-view-instance-save-as-dialog.c: remove GnomeDialog references. * gal-view-new-dialog.c: same. svn path=/trunk/; revision=18813
* more porting work.Chris Toshok2002-11-141-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-13 Chris Toshok <toshok@ximian.com> * gal-define-views-dialog.[ch]: more porting work. * gal-define-views-model.[ch]: same. * gal-view-etable.c: same. * gal-view-factory-etable.c: same. * gal-view-instance-save-as-dialog.[ch]: same. * gal-view-instance.c: same. * gal-view-new-dialog.[ch]: same. * gal-define-views.glade: convert to glade2. * gal-view-instance-save-as-dialog.glade: same. * gal-view-new-dialog.glade: same. svn path=/trunk/; revision=18749
* start porting to GObject.Chris Toshok2002-11-141-76/+47
| | | | | | | | | | | | | | | | | | | | 2002-11-13 Chris Toshok <toshok@ximian.com> * gal-view-collection.[ch]: start porting to GObject. * gal-view-etable.[ch]: same. * gal-view-factory-etable.[ch]: same. * gal-view-factory.[ch]: same. * gal-view-factory.[ch]: same. * gal-view-instance.[ch]: same. * gal-view.[ch]: same. svn path=/trunk/; revision=18745
* merging the gal-2 branch back to the trunk.Mike Kestner2002-11-011-5/+4
| | | | | | merging the gal-2 branch back to the trunk. svn path=/trunk/; revision=18471
* Bumped version number to 0.19.99.14.Christopher James Lahey2002-04-231-0/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-22 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped version number to 0.19.99.14. * gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h (e_popup_menu_copy_1, e_popup_menu_free_1, e_popup_menu_copy, e_popup_menu_free): Added these functions From gal/e-table/ChangeLog: 2002-04-22 Christopher James Lahey <clahey@ximian.com> * e-table-memory-store.c, e-table-memory-store.h: Renamed the insert functions in this class to make a bit more sense. From gal/menus/ChangeLog: 2002-04-22 Christopher James Lahey <clahey@ximian.com> * gal-view-instance.c, gal-view-instance.h (gal_view_instance_get_popup_menu, gal_view_instance_free_popup_menu): Added these functions. Used to add a current view menu to your popup menus. From gal/shortcut-bar/ChangeLog: 2002-04-22 Christopher James Lahey <clahey@ximian.com> * e-icon-bar.c (e_icon_bar_drag_motion): Removed an unused variable. svn path=/trunk/; revision=16559
* Bumped the version number to 0.19.99.5.Christopher James Lahey2002-02-071-78/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-07 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 0.19.99.5. * gal/Makefile.am (libgal_la_LIBADD): Added menus/gal-view-instance-save-as-dialog.lo. * gal/e-text/e-text.c (next_word): Contains refactored code from the E_TEP_FORWARD_WORD case of e_text_command. (e_text_command): Implemented E_TEP_CAPS. From gal/menus/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * Makefile.am (glade_DATA): Added gal-view-instance-save-as-dialog.glade. (libgalmenus_la_SOURCES): Added gal-view-instance-save-as-dialog.c. (libgalmenusinclude_HEADERS): Added gal-view-instance-save-as-dialog.h. * gal-view-collection.c, gal-view-collection.h (gal_view_collection_append_with_title): Added this new version of the append function that sets the title and returns the new id as well. (gal_view_collection_set_nth_view): Added this function to save over another view. (gal_view_collection_get_default_view, gal_view_collection_set_default_view): Added the concept of a default view for GalViewCollections. * gal-view-etable.c, gal-view-etable.h (gal_view_etable_attach_table, gal_view_etable_attach_tree, gal_view_etable_detach): Added functions to set the state of a table or tree and then send GalView "changed" signals whenever that state changes. (gal_view_etable_set_state): New function to set the ETableState of a GalViewETable. * gal-view-instance-save-as-dialog.c, gal-view-instance-save-as-dialog.glade, gal-view-instance-save-as-dialog.h: New dialog to save the current custom view as a named view. * gal-view-instance.c, gal-view-instance.h (gal_view_instance_set_custom_view): New function to set the state of an instance to custom view and set the custom view to a particular GalView. (gal_view_instance_exists): New function to check if this particular instance has ever been opened before. Use before gal_view_instance_load. (gal_view_instance_save_as): New function to open a save as dialog. (gal_view_instance_load): Added this function which used to be part of _construct. This function can be called multiple times, and those extra times will be ignored. This is so you can set a default view before loading. (gal_view_instance_get_default_view, gal_view_instance_set_default_view): Set the default view for this instance. If unset, this falls back to the default view for the corresponding GalViewCollection. svn path=/trunk/; revision=15590
* Added gal-view-instance.c and gal-view-instance.h.Christopher James Lahey2002-02-011-0/+338
2002-01-31 Christopher James Lahey <clahey@ximian.com> * Makefile.am: Added gal-view-instance.c and gal-view-instance.h. * gal-view-collection.c, gal-view-collection.h (gal_view_collection_load_view_from_file): Factored out this function so that it can be used outside of gal-view-collection.c. (gal_view_collection_get_view_index_by_id, gal_view_collection_get_view_id_by_index, gal_view_collection_loaded): Added these functions. * gal-view-instance.c, gal-view-instance.h: New class representing a single folder of a particular type of folder. svn path=/trunk/; revision=15544