summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.c
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate widget flag: GTK_WIDGET_IS_SENSITIVEJavier Jardón2010-03-011-3/+3
| | | | | | Use gtk_widget_is_sensitive() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* bgo#355851 - Hide backup files in the file chooserMilan Bouchet-Valat2009-06-111-3/+3
| | | | | | Backup files are hidden along with dotfiles, just like Nautilus. Signed-off-by: Federico Mena Quintero <federico@novell.com>
* bgo#327152 - Ellipsize long directory names in GtkPathBar, and better layout ↵Denis Chertykov2009-06-051-51/+49
| | | | | | | | | | | | | | | | | for the pathbar Ellipsize labels in the Save folder's combo so they don't grow too wide. Ellipsize labels in normal directory buttons in the pathbar, and make their requisition's width reasonably small. Use a tooltip for buttons that got ellipsized. Instead of placing the down-slider directly beside the last button in the pathbar, use the remaining space in the pathbar for the last button. Use a different method to find the first visible button. Walk down from the end, adding buttons until we use all free space. Signed-off-by: Federico Mena Quintero <federico@novell.com>
* gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkentry.cMichael Natterer2008-08-121-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * gtk/gtkaccellabel.c * gtk/gtkcalendar.c * gtk/gtkclist.c * gtk/gtkentry.c * gtk/gtkeventbox.c * gtk/gtkfilechooserbutton.c * gtk/gtkfilechooserdefault.c * gtk/gtkhandlebox.c * gtk/gtkhsv.c * gtk/gtkiconview.c * gtk/gtkimage.c * gtk/gtklayout.c * gtk/gtklistitem.c * gtk/gtkmenuitem.c * gtk/gtkmessagedialog.c * gtk/gtknotebook.c * gtk/gtkpaned.c * gtk/gtkpathbar.c * gtk/gtkplug.c * gtk/gtkprintunixdialog.c * gtk/gtkrange.c * gtk/gtkrecentchooserdefault.c * gtk/gtkruler.c * gtk/gtksocket.c * gtk/gtktext.c * gtk/gtktextview.c * gtk/gtktoolbar.c * gtk/gtktreeitem.c * gtk/gtktreeview.c * gtk/gtkviewport.c * gtk/gtkwin32embedwidget.c: chain up unconditionally in realize(), unrealize(), map(), unmap(), style_set(), key_press_event() and size_request() svn path=/trunk/; revision=21088
* consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance)Michael Natterer2008-08-121-1/+1
| | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * gtk/*.c: consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance) instead of (*GTK_FOO_CLASS(parent_class))->bar(instance). svn path=/trunk/; revision=21085
* gtk/gtkaboutdialog.c gtk/gtkcellrendereraccel.c gtk/gtkcellrenderercombo.cSven Neumann2008-08-111-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-11 Sven Neumann <sven@gimp.org> * gtk/gtkaboutdialog.c * gtk/gtkcellrendereraccel.c * gtk/gtkcellrenderercombo.c * gtk/gtkcellrendererspin.c * gtk/gtkcellrenderertext.c * gtk/gtkclipboard.c * gtk/gtkcolorsel.c * gtk/gtkcombo.c * gtk/gtkcombobox.c * gtk/gtkdnd-quartz.c * gtk/gtkdnd.c * gtk/gtkentry.c * gtk/gtkentrycompletion.c * gtk/gtkfilechooserbutton.c * gtk/gtkfilechooserdefault.c * gtk/gtkfilechooserentry.c * gtk/gtkfontsel.c * gtk/gtkinputdialog.c * gtk/gtkmenutoolbutton.c * gtk/gtkpathbar.c * gtk/gtktooltip.c: use canonical signal names in g_signal_connect(). svn path=/trunk/; revision=21060
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* Really make GtkFileSystem private by _-prefixing all functions.Matthias Clasen2008-06-131-28/+28
| | | | | | | | | | | | | | * gtk/gtkfilechooserbutton.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkfilechooserentry.c: * gtk/gtkfilesystem.c: * gtk/gtkfilesystem.h: * gtk/gtkfilesystemmodel.c: * gtk/gtkpathbar.c: Really make GtkFileSystem private by _-prefixing all functions. svn path=/trunk/; revision=20378
* Bug 520874 - Should use gio directly.Carlos Garnacho2008-06-101-136/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-10 Carlos Garnacho <carlos@imendio.com> Bug 520874 - Should use gio directly. * gtk/gtkfilesystem.[ch]: Turn into a private object, which mostly provides helper functions for asynchronous calls, folder abstraction and uniform handling of volumes/drives/mounts. * gtk/gtkfilesystemwin32.[ch]: * gtk/gtkfilesystemunix.[ch]: Removed, these are no longer required. * gtk/gtkfilechooser.c: * gtk/gtkfilechooserbutton.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkfilechooserentry.[ch]: * gtk/gtkfilechooserprivate.h: * gtk/gtkfilechooserutils.c: * gtk/gtkfilesystemmodel.[ch]: * gtk/gtkpathbar.[ch]: Use GIO internally. Adapt to GtkFileSystem API. Do not load filesystem implementation modules. * gtk/Makefile.am: * gtk/gtk.symbols: the gtkfilesystem.h private header isn't installed anymore, nor the unix/win32 implementations. * README.in: Add blurb about these changes. svn path=/trunk/; revision=20342
* bgo417389 - Scrollwheel for GtkPathBarCarlos Garnacho2008-03-031-15/+113
| | | | | | | | | | | | | | | | | | | 2008-03-03 Carlos Garnacho <carlos@imendio.com> Fix http://bugzilla.gnome.org/show_bug.cgi?id=417389 - Make the scrollwheel work in GtkPathBar. * gtk/gtkpathbar.h (struct _GtkPathBar): New field event_window. * gtk/gtkpathbar.c (gtk_path_bar_realize): New function. Create an input-only window, event_window, which we'll use to capture scroll events. (gtk_path_bar_map): Show the event_window under the rest of the windows, so it will be a catch-all for unhandled events. Signed-off-by: Federico Mena Quintero <federico@gnu.org> svn path=/trunk/; revision=19699
* Use gtk_drag_*_add_{text,uri}_targets instead of hardcoded target tables.Matthias Clasen2008-02-161-6/+2
| | | | | | | | | | | | | | 2008-02-15 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c: * gtk/gtkfilesel.c: * gtk/gtklabel.c: * gtk/gtkpathbar.c: Use gtk_drag_*_add_{text,uri}_targets instead of hardcoded target tables. (#516092, Christian Persch) svn path=/trunk/; revision=19590
* Use gtk_selection_data_set_uris() instead of doing it by hand. (#514890,Matthias Clasen2008-02-121-11/+5
| | | | | | | | | | | | | | | 2008-02-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooserdefault.c (recent_model_sort_drag_data_get): (recent_model_sort_drag_data_get): (search_model_sort_drag_data_get): * gtk/gtkfilesystemmodel.c (drag_source_drag_data_get): * gtk/gtkpathbar.c (button_drag_data_get_cb): Use gtk_selection_data_set_uris() instead of doing it by hand. (#514890, Christian Persch) svn path=/trunk/; revision=19524
* remove unused variable.Michael Natterer2008-01-091-2/+1
| | | | | | | | | | | | | | | | | | | | | 2008-01-09 Michael Natterer <mitch@imendio.com> * gtk/gtkcolorsel.c (make_label_spinbutton): remove unused variable. * gtk/gtkcombobox.c (gtk_combo_box_detacher) * gtk/gtkicontheme.c (theme_list_contexts) (gtk_icon_theme_lookup_icon) * gtk/gtkimcontextsimple.c (beep_window) * gtk/gtklinkbutton.c (set_link_color) * gtk/gtkuimanager.c (child_hierarchy_changed_cb): add casts to fix warnings. * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): remove unused variable and add const to another to fix a warning. svn path=/trunk/; revision=19330
* Don't leak a label. (#455901, Christian Persch, Vincent Geddes)Matthias Clasen2007-07-201-1/+1
| | | | | | | | | | | 2007-07-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.c (make_directory_button): Don't leak a label. (#455901, Christian Persch, Vincent Geddes) svn path=/trunk/; revision=18511
* Use g_get_user_special_dir() to obtain the path for the DESKTOP directory.Matthias Clasen2007-06-071-3/+7
| | | | | | | | | | | | | 2007-06-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooserbutton.c (model_add_special): * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): * gtk/gtkfilesystemunix.c (get_icon_name_for_directory): * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system): Use g_get_user_special_dir() to obtain the path for the DESKTOP directory. svn path=/trunk/; revision=18070
* Check if down_button is NULL. This happens when the pathbar button for theCody Russell2007-06-041-1/+4
| | | | | | | | | | | | | 2007-06-04 Cody Russell <bratsche@gnome.org> * gtk/gtkpathbar.c (gtk_path_bar_scroll_down): Check if down_button is NULL. This happens when the pathbar button for the current directory is too large to fit in the space, e.g. on Windows for directories named something like "My Documents and Settings". svn path=/trunk/; revision=18030
* Add ATK names to the Up, Down, and Root buttons. Keep the focus fromMatthias Clasen2007-05-161-1/+76
| | | | | | | | | | | | 2007-05-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.c: Add ATK names to the Up, Down, and Root buttons. Keep the focus from vanishing when Up or Down arrows become insensitive or invisible. (#357005, Patrick Wade) svn path=/trunk/; revision=17856
* Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder,Matthias Clasen2007-03-091-2/+1
| | | | | | | | | | | | | 2007-03-09 Matthias Clasen <mclasen@redhat.com> * Everywhere: Remove unnecessary NULL checks before g_free(). (#369666, Morten Welinder, Djihed Afifi) * configure.in: Check for ftw.h svn path=/trunk/; revision=17444
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-221-6/+2
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Fix parenthesis confusion.Carlos Garnacho2006-11-091-3/+3
| | | | | | 2006-11-09 Carlos Garnacho <carlosg@gnome.org> * gtk/gtkpathbar.c (on_slider_unmap): Fix parenthesis confusion.
* added, do not leave the scroll timeout running if the slider buttons areCarlos Garnacho2006-11-081-0/+14
| | | | | | | 2006-11-08 Carlos Garnacho <carlosg@gnome.org> * gtk/gtkpathbar.c (on_slider_unmap): added, do not leave the scroll timeout running if the slider buttons are hidden. (#372527)
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-1/+0
| | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
* Commit a patch by Behdad to fix typos, omissions and other errors in theMatthias Clasen2006-09-101-0/+3
| | | | | | | | 2006-09-10 Matthias Clasen <mclasen@redhat.com> * Commit a patch by Behdad to fix typos, omissions and other errors in the symbol aliasing, and add checks for local PLT entries. (#354687, Behdad Esfahbod)
* don't cancel the operations spawned by buttons here,Kristian Rietveld2006-09-041-13/+18
| | | | | | | | | | | | | 2006-09-04 Kristian Rietveld <kris@imendio.com> * gtk/gtkpathbar.c (gtk_path_bar_dispose): don't cancel the operations spawned by buttons here, (set_button_image_get_info_cb): bail out if button is NULL, but do free button_data, (button_data_free): only free the data is non NULL (since this function can be called multiple times for the same data), cancel handle is pending but don't free button_data in this case (will happen in the callback).
* Improve consistency of signal and property namesMatthias Clasen2006-07-061-1/+1
|
* cancel all pending handles in the button list. (Fixes #341035, reported byKristian Rietveld2006-05-161-0/+10
| | | | | | | 2006-05-16 Kristian Rietveld <kris@imendio.com> * gtk/gtkpathbar.c (gtk_path_bar_dispose): cancel all pending handles in the button list. (Fixes #341035, reported by William Jon McCann).
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Merged the federico-filename-entry branch, to fix bug #136541. CombinedAFTER_FEDERICO_FILENAME_ENTRY_MERGEFederico Mena Quintero2006-05-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-03 Federico Mena Quintero <federico@novell.com> Merged the federico-filename-entry branch, to fix bug #136541. Combined ChangeLogs: 2006-04-17 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooserdefault.c (pending_select_paths_process): Oops, we *do* need to check that we are in OPEN mode before selecting the first row in the file list. See https://bugzilla.novell.com/show_bug.cgi?id=166906 (gtk_file_chooser_default_get_paths): If we are in the case for the file list, and the list has no selected rows, jump to the case for the filename entry. This is so that 1. The user types a filename in the SAVE filename entry ("foo.txt"). 2. He then double-clicks on a folder ("bar") in the file list. will yield the expected "bar/foo.txt" selection. 2006-03-29 Federico Mena Quintero <federico@novell.com> * gtk/gtkpathbar.c (gtk_path_bar_init): Reduce the inter-button spacing to 0. * gtk/gtkfilechooserdefault.c (browse_widgets_create): Make the location label bold. 2006-03-29 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooserdefault.c (location_mode_set): Just change the location_mode field if we are in SAVE/CREATE_FOLDER modes. (gtk_file_chooser_default_get_paths): Get the path based on the currently focused widget, or the last-focused widget. This is what we should have been doing in the beginning, but it worked out fine because we didn't have the possibility of a filename entry in OPEN mode. (gtk_file_chooser_default_should_respond): Handle the case where the last focused widget is the location_entry. 2006-03-28 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechoosersettings.[ch]: New files with a simple framework for saving/loading settings from the file chooser in $XDG_CONFIG_HOME/gtk-2.0/gtkfilechooser. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_unmap): Save the current settings. (settings_save): New helper function. We save the location_mode and show_hidden flags. (gtk_file_chooser_default_map): Load the settings. (settings_load): New helper function. * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_file_part): Oops, don't modify in_change. Our handlers are what set the file_part, so they *must* be run when we modify the text. 2006-03-27 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): Removed the save_file_name_entry. We'll make this be the same as the location_entry widget. (struct _GtkFileChooserDefault): Leave only location_button, location_entry_box, location_label, location_entry. We'll use a single toggle button for the location entry, which will appear below the path bar. (struct _GtkFileChooserDefault): Added a processing_pending_selections flag. * gtk/gtkfilechooserdefault.c (save_widgets_create): Destroy the old location_entry if necessary, and hide the location toggle widgets. (update_chooser_entry): In multiple selection mode, just clear the location_entry. (check_save_entry): Allow running in OPEN or SELECT_FOLDER modes if we are in LOCATION_MODE_FILENAME_ENTRY. (gtk_file_chooser_default_should_respond): Switch to a folder if the location_entry contains a folder name in OPEN and SAVE mode, not just SAVE mode. If the entry doesn't contain a folder name, but is otherwise well-formed, and we are in OPEN mode, return that we should respond with that filename. (gtk_file_chooser_default_initial_focus): Focus the location_entry if appropriate. (browse_widgets_create): Create the location_entry_box and the location_label here. (update_appearance): Call location_mode_set() when switching back to OPEN/SELECT_FOLDER mode. Hide the location_button when switching to SAVE/CREATE_FOLDER mode. (pending_select_paths_process): Turn the processing_pending_selections flag on and off around changes to the current selection. Don't special-case OPEN mode anymore, since the new flag will take care of things in update_chooser_entry(). (update_chooser_entry): Don't do anything if processing_pending_selections is TRUE. This keeps the entry from being polluted when changing folders. (location_popup_handler): In OPEN/SELECT_FOLDER modes, toggle between the path bar and the entry. In SAVE/CREATE_FOLDER modes, simply focus the location_entry. (update_from_entry): Removed. (location_entry_create): Removed. (open_location_cb): Removed. (file_list_build_popup_menu): Don't add an "Open _Location" menu item. (location_entry_set_initial_text): Don't do anything if current_folder is NULL. * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_file_part): Turn in_change on and off around the call to gtk_entry_set_text(). This makes completion not happen when the caller has explicitly set a name. 2006-03-24 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): Added fields location_mode_box, location_pathbar_radio, location_filename_radio, location_widget_box, location_label, location_entry. The radio buttons will switch between the pathbar and the location entry; the other boxes are for layout purposes. (enum LocationMode): New enum. (struct _GtkFileChooserDefault): Added a location_mode field. * gtk/gtkfilechooserdefault.c (browse_widgets_create): Create the location radio buttons to switch between the pathbar and the location entry. Pack the browse_path_bar in the new location_widget_box instead of a generic hbox. (location_buttons_create): New function. (gtk_file_chooser_default_init): Initialize impl->location_mode. (location_switch_to_path_bar): New function. (location_switch_to_filename_entry): New function. * gtk/gtkfilechooserbutton.c (model_add_special): The display_name should not be const.
* Merge of the GTK+ asynchronous file chooser branch. Please see theAFTER_KRIS_ASYNC_BRANCH_MERGEKristian Rietveld2006-05-011-123/+264
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-01 Kristian Rietveld <kris@imendio.com> Merge of the GTK+ asynchronous file chooser branch. Please see the kris-asynch-branch for more detailed ChangeLog entries. * configure.in: increase binary version to 2.9.0. * gtk.symbols: * gtkfilechooser.c: * gtkfilechooserbutton.c: * gtkfilechooserdefault.c: * gtkfilechooserdialog.c: * gtkfilechooserembed.c: * gtkfilechooserembed.h: * gtkfilechooserentry.c: * gtkfilechooserentry.h: * gtkfilechooserprivate.h: * gtkfilesystem.c: * gtkfilesystem.h: * gtkfilesystemmodel.c: * gtkfilesystemmodel.h: * gtkfilesystemunix.c: * gtkpathbar.c: * gtkpathbar.h: Merge from kris-async-branch.
* Made button-press timeouts which work like key repeat timeoutsMichael Natterer2005-11-221-6/+13
| | | | | | | | | | | | | | | | | | | | | 2005-11-22 Michael Natterer <mitch@imendio.com> Made button-press timeouts which work like key repeat timeouts configurable. Addresses bug #142582: * gtk/gtksettings.c: added properties "gtk-timeout-initial" and "gtk-timeout-repeat" which defalt to 200/20 (ms). Use the values from GtkSettings instead of hardcoding them (the repeat value is either taken as-is for fast repeat or multiplied by 5 for slow repeat). Changed all places to use these two standard initial/repeat timings: * gtk/gtkcalendar.c (unchanged 200/20) * gtk/gtknotebook.c (unchanged 200/100) * gtk/gtkpathbar.c (changed from 300/150 to 200/100) * gtk/gtkrange.c (changed from 250/100 to 200/100) * gtk/gtkspinbutton.c (unchanged 200/20)
* Merge remaining fixes from the 2.8 branch, pointed out by MichaelMatthias Clasen2005-11-211-5/+11
| | | | | | | 2005-11-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.c: Merge remaining fixes from the 2.8 branch, pointed out by Michael Natterer.
* Fix crashes in connection with pathbar scrolling (#321560, Bogdan Nicula)Matthias Clasen2005-11-191-1/+3
| | | | | | | | | | | | | | | 2005-11-18 Matthias Clasen <mclasen@redhat.com> Fix crashes in connection with pathbar scrolling (#321560, Bogdan Nicula) * gtk/gtkpathbar.c (gtk_path_bar_update_slider_buttons): Stop scrolling when desensitising slider buttons. (gtk_path_bar_scroll_timeout, gtk_path_bar_slider_button_press): And use it here. * gtk/gtkpathbar.h (struct _GtkPathBar): Add a separate scrolling_down flag.
* Fix a C99ism. (#321777, Jens Granseuer)Matthias Clasen2005-11-181-1/+1
| | | | | | | 2005-11-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.c (button_clicked_cb): Fix a C99ism. (#321777, Jens Granseuer)
* Improve navigation to parent folders. (#318444, Andrei Yurkevich)Matthias Clasen2005-11-101-4/+11
| | | | | | | | | | | | | 2005-11-10 Matthias Clasen <mclasen@redhat.com> Improve navigation to parent folders. (#318444, Andrei Yurkevich) * gtk/gtkpathbar.[hc]: Add a child_path argument to the path_clicked signal. * gtk/gtkfilechooserdefault.c (path_bar_clicked): Select the child_path, if it is provided. * gtk/marshalers.list (path_bar_clicked): Add the necessary glue.
* Set focus-on-click to FALSE for all buttons. Don't grab focus when aMatthias Clasen2005-11-071-7/+12
| | | | | | | | | 2005-11-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.[hc]: Set focus-on-click to FALSE for all buttons. Don't grab focus when a slider button is pressed, instead, use a bit in the pathbar struct to determine whether to scroll up or down. (#314486, Carlos Garnacho)
* Don't special-case Home and Desktop; just use their real names on the fileFederico Mena Quintero2005-10-041-7/+1
| | | | | | | | | | | | | | | | | 2005-10-04 Federico Mena Quintero <federico@ximian.com> * gtk/gtkpathbar.c (get_dir_name): Don't special-case Home and Desktop; just use their real names on the file system for the user-visible names. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init): Add a "desktop-folder" binding signal, and bind it to M-d by default. (desktop_folder_handler): Implement the default handler. (home_folder_handler): Use a helper function. (switch_to_shortcut): New helper function. (shortcuts_append_home): Don't special-case the name of "Home"; just use the folder name.
* Intern some more strings.Matthias Clasen2005-09-011-1/+1
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-3/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* Fix #157787, reported by Jonathan Blandford:Matthias Clasen2005-07-071-2/+3
| | | | | | | | | | | | | | | | | 2005-07-07 Matthias Clasen <mclasen@redhat.com> Fix #157787, reported by Jonathan Blandford: * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_current_folder): Don't leave a "trail" behind when set_current_folder is called explicitly. (gtk_file_chooser_default_update_current_folder): New function that is called to update the current folder in response to user actions. * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Add a boolean keep_trail argument, and don't leave a "trail" behind unless it is set.
* Rework the way in which rerooting of the path bar is done, implementingMatthias Clasen2005-06-131-19/+61
| | | | | | | | | | | | | | | | | | 2005-06-13 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the path bar is done, implementing the following principles: (#137289, patch by Benjamin Otte) 1. Re-root only if $HOME is an ancestor of the current path. 2. When re-rooting, make sure the Left arrow appears in the path bar, so that you can navigate up from $HOME to /. In that case, make sure the Right arrow doesn't appear if the sub-hierarchy from $HOME to the cwd fits in the window. 3. Make sure that hitting Alt-Up takes you always one folder up, even when the path bar is re-rooted.
* Stop scrolling when the widget is unmapped. (#168791, Ryan Lortie)Matthias Clasen2005-03-221-0/+10
| | | | | | | | | | 2005-03-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.c (gtk_path_bar_unmap): * gtk/gtkspinbutton.c (gtk_spin_button_unmap): * gtk/gtknotebook.c (gtk_notebook_unmap): * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when the widget is unmapped. (#168791, Ryan Lortie)
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+1
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* Stop scrolling when the pathbar goes away. (#167094, Rodney Dawes)Matthias Clasen2005-02-111-2/+6
| | | | | | | | | 2005-02-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.c (gtk_path_bar_finalize): Stop scrolling when the pathbar goes away. (#167094, Rodney Dawes) (change_icon_theme): Use GTK_ICON_SIZE_MENU here as well (Vincent Noel)
* Don't call button_data_free() explicitly; the button is weak-reffed andFederico Mena Quintero2005-01-061-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-01-05 Federico Mena Quintero <federico@ximian.com> * gtk/gtkpathbar.c (_gtk_path_bar_set_path): Don't call button_data_free() explicitly; the button is weak-reffed and the callback will free the button data. Fixes #163010. (_gtk_path_bar_set_path): Don't ref/sink the button. And for the failure case, call gtk_widget_destroy() on it. * gtk/gtkfilechooserdefault.c (check_is_folder): Use gtk_file_system_get_folder() again (see the ChangeLog entry from 2004-08-25). We can't first get the parent folder and then request the info for the path in question, as the parent folder may not be readable. See bug #162617. (gtk_file_chooser_default_set_current_folder): Assert that the passed-in path is not null. (shortcuts_find_current_folder): Likewise. (shortcuts_add_current_folder): Likewise. (set_list_model): Likewise. (gtk_file_chooser_default_map): Only reload the current folder if it exists. (bookmarks_check_add_sensitivity): Check for the current folder being NULL. (browse_files_select_first_row): Don't set the cursor if there is no model loaded.
* Merged from gtk-2-4:Federico Mena Quintero2004-11-201-0/+41
| | | | | | | | | | | | | 2004-11-19 Federico Mena Quintero <federico@ximian.com> Merged from gtk-2-4: Fix #158475: * gtk/gtkpathbar.c (make_directory_button): Make the button a drag source. (button_drag_data_get_cb): New callback to let us drag the button's path as a text/uri-list.
* Fix many sparse warnings.Matthias Clasen2004-10-281-2/+2
|
* Scroll to make the current folder visible. (#152921)Matthias Clasen2004-09-261-2/+2
| | | | | | | 2004-09-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.c (gtk_path_bar_check_parent_path): Scroll to make the current folder visible. (#152921)
* Revert the button state to !button_down, if we're missing the releaseMatthias Clasen2004-09-261-3/+146
| | | | | | | | | | 2004-09-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkbutton.c: Revert the button state to !button_down, if we're missing the release event due to grab shadowing or insensitivation. * gtk/gtkpathbar.c: Make the slider buttons scroll.
* Give the path bar arrows some more space.Matthias Clasen2004-09-211-1/+1
| | | | | | | 2004-09-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path bar arrows some more space.
* Change the Down button to be end-justified, so that clicking on it is aJonathan Blandford2004-08-251-5/+8
| | | | | | | | Wed Aug 25 15:15:56 2004 Jonathan Blandford <jrb@redhat.com> * gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Change the Down button to be end-justified, so that clicking on it is a stable operation.