1. 11 May, 2007 8 commits
    • Emmanuele Bassi's avatar
      GtkFileChooser search fixes and recent files support. (#435342) · 9f2d1953
      Emmanuele Bassi authored
      2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
      
      	GtkFileChooser search fixes and recent files support.  (#435342)
      
      	* gtk/gtkfilechooserprivate.h:
      	* gtk/gtkfilechooserdefault.c: Update the contents of the
      	files list when changing the filter of the GtkFileChooserDefault
      	widget.
      
      svn path=/trunk/; revision=17827
      9f2d1953
    • Emmanuele Bassi's avatar
      GtkFileChooser search fixes and recent files support. (#435342) · 2957c052
      Emmanuele Bassi authored
      2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
      
      	GtkFileChooser search fixes and recent files support.  (#435342)
      
      	* gtk/gtkfilechooserdefault.c: Update the add bookmark button
      	sensitivity when in search or recent files mode, and allow
      	adding a bookmark for a folder.
      
      svn path=/trunk/; revision=17826
      2957c052
    • Emmanuele Bassi's avatar
      GtkFileChooser search fixes and recent files support. (#435342) · 588d09cf
      Emmanuele Bassi authored
      2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
      
      	GtkFileChooser search fixes and recent files support.  (#435342)
      
      	* gtk/gtkfilechooserdefault.c: UI fixes in the Search mode: add
      	a mnemonic to the label, de-boldify the label's text and assign
      	focus to the search entry when switching to the search mode.
      
      	(list_name_data_func): Split the text in both search and recent
      	files mode: on the first line use the short name and on the
      	second line use the full path.
      
      svn path=/trunk/; revision=17825
      588d09cf
    • Emmanuele Bassi's avatar
      GtkFileChooser search fixes and recent files support. (#435342) · 4078ef56
      Emmanuele Bassi authored
      2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
      
      	GtkFileChooser search fixes and recent files support.  (#435342)
      
      	* gtk/gtkfilechooserprivate.h:
      	* gtk/gtkfilechooserdefault.c: Add support for showing the
      	recently used files list as a special shortcut item.
      
      svn path=/trunk/; revision=17824
      4078ef56
    • Emmanuele Bassi's avatar
      GtkFileChooser search fixes and recent files support. (#435342) · b5d60d48
      Emmanuele Bassi authored
      2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
      	
      	GtkFileChooser search fixes and recent files support.  (#435342)
      
      	* gtk/gtkfilechooserdefault.c: Overall whitespace fixes and
      	indentation style consistency.
      
      	(list_row_activated): If the search hit is a folder, follow it
      	when activating the row, and switch back to browse mode.
      
      	(search_clear_model), (search_start_query),
      	(search_entry_activate_cb), (search_setup_widgets): Remember
      	the last query when switching between modes.
      
      svn path=/trunk/; revision=17823
      b5d60d48
    • Emmanuele Bassi's avatar
      Add key binding for the Search shortcut; default to MOD1+S. · ccc3c58a
      Emmanuele Bassi authored
      2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* gtk/gtkfilechooserdefault.c:
      	(_gtk_file_chooser_default_class_init): Add key binding for
      	the Search shortcut; default to MOD1+S.
      
      	(search_shortcut_handler): Handle the key binding.
      
      	(search_hit_get_info_cb), (search_add_hit), (search_clear_model),
      	(search_setup_model): Retrieve informations on the search hits
      	when adding them to the model.
      
      	(list_icon_data_func): Show the search hit icon.
      
      svn path=/trunk/; revision=17822
      ccc3c58a
    • Michael Natterer's avatar
      call gdk_event_request_motions(event) so selecting works with XInput · f4df1a52
      Michael Natterer authored
      2007-05-11  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtktextview.c (selection_motion_event_handler): call
      	gdk_event_request_motions(event) so selecting works with
      	XInput devices too. Spotted by Tommi Komulainen.
      
      
      svn path=/trunk/; revision=17820
      f4df1a52
    • Emmanuele Bassi's avatar
      Fall back to GtkSearchEngineSimple only if gthread has already been · 3768e2be
      Emmanuele Bassi authored
      2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* gtk/gtksearchengine.c (_gtk_search_engine_new): Fall back
      	to GtkSearchEngineSimple only if gthread has already been
      	initialiased; otherwise, disable search support in the file
      	chooser widget.  (#435847)
      
      svn path=/trunk/; revision=17819
      3768e2be
  2. 10 May, 2007 3 commits
  3. 09 May, 2007 3 commits
  4. 04 May, 2007 1 commit
  5. 03 May, 2007 1 commit
    • Emmanuele Bassi's avatar
      Remove spurious g_free() call. · 7250d57a
      Emmanuele Bassi authored
      2007-05-03  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* gtk/gtksearchenginesimple.c (search_engine_simple_finalize): Remove
      	spurious g_free() call.
      
      svn path=/trunk/; revision=17786
      7250d57a
  6. 02 May, 2007 6 commits
    • Emmanuele Bassi's avatar
      Add search file support in the GtkFileChooser. Original patch by Federico · d3aeccf7
      Emmanuele Bassi authored
      2007-05-02  Emmanuele Bassi  <ebassi@gnome.org>
      
      	Add search file support in the GtkFileChooser. Original patch
      	by Federico Mena Quintero; patch updated by Matthias Clasen.
      	See bug #344785.
      
      	* gtk/gtksearchengine.[ch]: Private search engine abstraction
      	object.
      
      	* gtk/gtksearchenginebeagle.[ch]: Private search engine
      	implementation using libbeagle (via g_module_open()).
      
      	* gtk/gtksearchenginesimple.[ch]: Private search engine
      	implementation using file tree walking.
      
      	* gtk/gtksearchenginetracker.[ch]: Private earch engine
      	implementation using libtracker (via g_module_open()).
      
      	* gtk/gtkquery.[ch]: Private query object for the search
      	engines.
      
      	* gtk/gtkfilechooserprivate.h:
      	* gtk/gtkfilechooserdefault.c: Use the GtkSearchEngine to
      	query a search engine backend using GtkQuery; create a new
      	operating mode, OPERATION_MODE_SEARCH, and call the common
      	operating mode OPERATION_MODE_BROWSE; add support for virtual
      	shortcuts inside the shortcuts model and create a new "Search"
      	virtual shortcut.
      
      	* gtk/Makefile.am: Update the build with the new files
      
      svn path=/trunk/; revision=17783
      d3aeccf7
    • Armin Burgmeier's avatar
      Destroy the menu in dispose instead of finalize, because the menu might · e82e337e
      Armin Burgmeier authored
      2007-05-02  Armin Burgmeier  <armin@openismus.com>
      
      	* gtk/gtkcombobox.c: Destroy the menu in dispose instead of
      	finalize, because the menu might unparent itself from its parent and
      	cause a signal emission on a finalized object. (#430746)
      
      svn path=/trunk/; revision=17782
      e82e337e
    • Kristian Rietveld's avatar
      stop the rubber band if it's active. · ba51caa9
      Kristian Rietveld authored
      2007-05-02  Kristian Rietveld  <kris@imendio.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_grab_notify): stop the rubber band
      	if it's active.
      
      
      svn path=/trunk/; revision=17770
      ba51caa9
    • Matthias Clasen's avatar
      Don't be too strict when checking icon flags. (#435062) · fdd5aa6e
      Matthias Clasen authored
      2007-05-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkiconcachevalidator.c: Don't be too strict when checking
              icon flags.  (#435062)
      
      
      
      svn path=/trunk/; revision=17767
      fdd5aa6e
    • Matthias Clasen's avatar
      Only copy pngs when generating builtin cache · 321817db
      Matthias Clasen authored
      svn path=/trunk/; revision=17766
      321817db
    • Matthias Clasen's avatar
      Don't ignore the fact that gtk_file_system_get_parent() may return NULL. · 098f74df
      Matthias Clasen authored
      2007-05-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkfilesystemmodel.c (_gtk_file_system_model_path_do):
              Don't ignore the fact that gtk_file_system_get_parent()
              may return NULL.  (#424042, Jan Martinek)
      
      
      
      svn path=/trunk/; revision=17764
      098f74df
  7. 01 May, 2007 8 commits
    • Christian Persch's avatar
      Use GSlice for gtk_tree_iter_copy. Bug #434863. · 5f724955
      Christian Persch authored
      2007-05-02  Christian Persch  <chpe@gnome.org>
      
      	* gtk/gtktreemodel.c: (gtk_tree_iter_copy), (gtk_tree_iter_free): Use
      	GSlice for gtk_tree_iter_copy. Bug #434863.
      
      svn path=/trunk/; revision=17761
      5f724955
    • Christian Persch's avatar
      Put only GtkPaperSizes into the list, don't mix it with GtkPageSetups. Bug · 77c55d66
      Christian Persch authored
      2007-05-02  Christian Persch  <chpe@gnome.org>
      
      	* gtk/gtkpapersize.c: (gtk_paper_size_get_paper_sizes): Put only
      	GtkPaperSizes into the list, don't mix it with GtkPageSetups. Bug
      	#434861.
      
      svn path=/trunk/; revision=17760
      77c55d66
    • Christian Persch's avatar
      Use GSlice to allocate GtkPaperSize. Bug #434862. · 014994ce
      Christian Persch authored
      2007-05-02  Christian Persch  <chpe@gnome.org>
      
      	* gtk/gtkpapersize.c: (gtk_paper_size_new_from_info),
      	(gtk_paper_size_new), (gtk_paper_size_new_custom),
      	(gtk_paper_size_copy), (gtk_paper_size_free): Use GSlice to allocate
      	GtkPaperSize. Bug #434862.
      
      svn path=/trunk/; revision=17759
      014994ce
    • Christian Persch's avatar
      No need to allocate a guint; just stuff the ID into the pointer directly. · f55cccb6
      Christian Persch authored
      2007-05-02  Christian Persch  <chpe@gnome.org>
      
      	* gtk/gtkstatusbar.c: (gtk_statusbar_get_context_id),
      	(gtk_statusbar_expose_event): No need to allocate a guint; just stuff
      	the ID into the pointer directly. Bug #434865.
      
      svn path=/trunk/; revision=17758
      f55cccb6
    • Matthias Clasen's avatar
      Remove debug spew · a5cbbdef
      Matthias Clasen authored
      svn path=/trunk/; revision=17756
      a5cbbdef
    • Matthias Clasen's avatar
      add a new struct field to clear the file entry after the current folder · a9423f49
      Matthias Clasen authored
      2007-05-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkfilechooserdefault.c (struct UpdateCurrentFolderData),
              (update_current_folder_get_info_cb): add a new struct field to clear
              the file entry after the current folder has been updated.
      
              (gtk_file_chooser_default_update_current_folder),
              (change_folder_and_display_error): Add a new function parameter to
              trigger file entry clearing.
      
              (edited_idle_create_folder_cb),
              (file_list_drag_data_received_get_info_cb),
              (gtk_file_chooser_default_map),
              (gtk_file_chooser_default_set_current_folder),
              (switch_to_selected_folder), (save_entry_get_info_cb),
              (shortcuts_activate_volume_mount_cb), (shortcuts_activate_volume),
              (shortcuts_activate_get_info_cb), (list_row_activated),
              (path_bar_clicked): use new function parameter appropriately.
      
              (gtk_file_chooser_default_should_respond): trigger file entry clearing
              after the directory is updated instead of clearing it before, this way
              we avoid reloading the completion model with the soon to be old folder,
              causing a warning and a glitch in the folder where completion happens.
              (#379414, Carlos Garnacho)
      
      
      svn path=/trunk/; revision=17754
      a9423f49
    • Matthias Clasen's avatar
      Add an icon cache validator. · 2a801133
      Matthias Clasen authored
      2007-05-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkiconcachvalidator.[hc]: Add an icon cache validator.
      
              * gtk/updateiconcache.c: Validate the generated cache before
              moving it in place. Also add a --validate option to validate
              an existing icon cache.
      
              * gtk/gtkiconcache.c: Validate icon caches before using them.
      
              * gtk/Makefile.am: Integrate it.
      
      
      svn path=/trunk/; revision=17753
      2a801133
    • Christian Persch's avatar
      Also move gtk_print_capabilities_get_type() to the new location. Bug · a1b53272
      Christian Persch authored
      2007-05-01  Christian Persch  <chpe@gnome.org>
      
      	* gtk/gtkprinter.h:
      	* gtk/gtkprintjob.h: Also move gtk_print_capabilities_get_type() to
      	the new location. Bug #390437.
      
      svn path=/trunk/; revision=17751
      a1b53272
  8. 30 Apr, 2007 10 commits
    • Matthias Clasen's avatar
      Make sure we always have a color_hash. (#423916, Jens Granseuer) · c3d16b27
      Matthias Clasen authored
      2007-04-30  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtksettings.c (settings_update_color_scheme):
              Make sure we always have a color_hash.  (#423916, Jens Granseuer)
      
      
      
      svn path=/trunk/; revision=17748
      c3d16b27
    • Christian Persch's avatar
      Make gtk_printer_get_capabilities public, and move the · 1aa8a09f
      Christian Persch authored
      2007-04-30  Christian Persch  <chpe@gnome.org>
      
      	* docs/reference/gtk/gtk-sections.txt:
      	* gtk/gtk.symbols:
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.c: (gtk_printer_get_capabilities),
      	(gtk_print_capabilities_get_type):
      	* gtk/gtkprinter.h:
      	* gtk/gtkprintjob.c:
      	* gtk/gtkprintjob.h:
      	* gtk/gtkprintunixdialog.c: (selected_printer_changed):
      	Make gtk_printer_get_capabilities public, and move the
      	GtkPrintCapabilities definition to gtkprinter.h. Bug #390437.
      
      svn path=/trunk/; revision=17747
      1aa8a09f
    • Christian Persch's avatar
      Make gtk_printer_get_capabilities public, and move the · be87e9a8
      Christian Persch authored
      2007-04-30  Christian Persch  <chpe@gnome.org>
      
      	* docs/reference/gtk/gtk-sections.txt:
      	* gtk/gtk.symbols:
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.c: (gtk_printer_get_capabilities),
      	(gtk_print_capabilities_get_type):
      	* gtk/gtkprinter.h:
      	* gtk/gtkprintunixdialog.c: (selected_printer_changed):
      	Make gtk_printer_get_capabilities public, and move the
      	GtkPrintCapabilities definition to gtkprinter.h. Bug #390437.
      
      svn path=/trunk/; revision=17746
      be87e9a8
    • Matthias Clasen's avatar
      A NO_WINDOW widget must not set the background of its window. (#433972, · 3cc1085d
      Matthias Clasen authored
      2007-04-30  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkexpander.c (gtk_expander_realize): A NO_WINDOW widget
              must not set the background of its window.  (#433972,
              Guilherme Polo)
      
      
      svn path=/trunk/; revision=17744
      3cc1085d
    • Matthias Clasen's avatar
      Fix some compiler warnings. (#433642, Kjartan Maraas) · 6573ed5f
      Matthias Clasen authored
      2007-04-30  Matthias Clasen  <mclasen@redhat.com>
      
              Fix some compiler warnings.  (#433642, Kjartan Maraas)
      
              * gtk/gtkfilesystemwin32.c (gtk_file_system_win32_get_info):
              (gtk_file_system_win32_create_folder):
              * gtk/gtkaction.c (gtk_action_create_menu): Fix NULL/FALSE confusion.
      
              * gtk/gtklinkbutton.c (gtk_link_button_clicked): Pass
              the right type to uri_func.
      
              * gtk/gtktext.c (gtk_text_key_press):
              * gtk/gtkstatusicon.c (gtk_status_icon_get_property):
              * gtk/gtkxembed.c (_gtk_xembed_send_message): Add casts.
      
              * gtk/gtktrayicon-x11.c (gtk_tray_icon_manager_window_destroyed):
              (gtk_tray_icon_delete):
              * gtk/gtkprintunixdialog.c (create_main_page):
              * gtk/gtkhsv.c (gtk_hsv_motion): Remove unused variables.
      
              * gtk/gtkliststore.c: Adapt callbacks to GSequence types.
      
      
      svn path=/trunk/; revision=17739
      6573ed5f
    • Matthias Clasen's avatar
      Allow indents to be negative. (#Bug 434308) · d2ab2164
      Matthias Clasen authored
      2007-04-30  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtktextview.c: Allow indents to be negative.  (#Bug 434308)
      
      
      svn path=/trunk/; revision=17736
      d2ab2164
    • Michael Natterer's avatar
      pop up the submenu explicitely only in touchscreen mode since otherwise · 1a3b0b48
      Michael Natterer authored
      2007-04-30  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): pop up the
      	submenu explicitely only in touchscreen mode since otherwise
      	selecting the item already pops up the submenu. Restores the
      	drag-selection timeout (spotted by Søren Sandmann, #128968).
      
      
      svn path=/trunk/; revision=17735
      1a3b0b48
    • Michael Natterer's avatar
      really rename gtk_paper_size_get_builtins() to · 2e184ceb
      Michael Natterer authored
      2007-04-30  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkpapersize.h: really rename gtk_paper_size_get_builtins()
      	to gtk_paper_size_get_paper_sizes().
      
      
      svn path=/trunk/; revision=17734
      2e184ceb
    • Tor Lillqvist's avatar
      _gtk_load_custom_papers() exists only on Unix. · 6398a264
      Tor Lillqvist authored
      2007-04-30  Tor Lillqvist  <tml@novell.com>
      
      	* gtk/gtkpapersize.c (gtk_paper_size_get_paper_sizes):
      	_gtk_load_custom_papers() exists only on Unix.
      
      
      svn path=/trunk/; revision=17733
      6398a264
    • Tor Lillqvist's avatar
      Add functionality to set overall opacity of a top-level window. (#405316) · 26d179fa
      Tor Lillqvist authored
      2007-04-30  Tor Lillqvist  <tml@novell.com>
      
      	Add functionality to set overall opacity of a top-level
      	window. (#405316)
      
      	* gtk/gtk.symbols: Add gtk_window_set_opacity and
      	gtk_window_get_opacity.
      
      	* gtk/gtkwindow.c (struct _GtkWindowPrivate,
      	(gtk_window_class_init): Add opacity property, a double in the
      	range [0, 1].
      	(gtk_window_set_opacity, gtk_window_get_opacity): Implement.
      	(gtk_window_realize): If opacity is set, call
      	gdk_window_set_opacity().
      
      	* gtk/gtkwindow.h: Declare gtk_window_set_opacity() and
      	gtk_window_get_opacity().
      
      
      svn path=/trunk/; revision=17731
      26d179fa