summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* 2.11.0GTK_2_11_0Matthias Clasen2007-05-242-0/+5
| | | | svn path=/trunk/; revision=17903
* Add some missing symbols.Matthias Clasen2007-05-237-16/+37
| | | | | | | | | | | | | | | | | 2007-05-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gdk/x11/xsettings-common.h: * gdk/gdk.symbols: Add some missing symbols. * gtk/paper_names_offsets.c: * gtk/gen-paper-names.c: Make variables static. * gtk/gtktooltip.[hc]: * gtk/gtkvolumebutton.c: * gtk/gtkscalebutton.c: Fix up symbol aliasing. svn path=/trunk/; revision=17899
* missing #include <ctype.h>.Yevgen Muntyan2007-05-238-17/+14
| | | | | | | | | | | | | | | | | | | 2007-05-23 Yevgen Muntyan <muntyan@tamu.edu> * gtk/gtkprintunixdialog.c: missing #include <ctype.h>. * gtk/gtkhandlebox.c (gtk_handle_box_paint): * gtk/gtkpagesetupunixdialog.c (_gtk_load_custom_papers): * gtk/gtkstatusbar.c (gtk_statusbar_get_context_id): * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): * gtk/gtktrayicon-x11.c (gtk_tray_icon_send_dock_request): * gtk/gtkpreview.c (gtk_preview_finalize): * gtk/gtknotebook.c (gtk_notebook_set_group_id): * tests/testnotebookdnd.c (window_creation_function): * tests/testiconview.c (do_popup_menu): Fixed some compiler warnings (#440689). svn path=/trunk/; revision=17898
* translate coordinates from the window they were received on to the eventKristian Rietveld2007-05-232-2/+28
| | | | | | | | | | | | | | | | 2007-05-23 Kristian Rietveld <kris@imendio.com> * gtk/gtktooltip.c (find_widget_under_pointer): translate coordinates from the window they were received on to the event widget's window; correct for no-window widgets after that, bail out on failure. This makes the coordinates given by GtkWidget::query-tooltip truly relative to widget->window. (#435188). * gtk/gtkwidget.c (gtk_widget_class_init): update docs for GtkWidget::query-tooltip. svn path=/trunk/; revision=17896
* Don't create new pango fontmaps. Use the default pangocairo fontmap andBehdad Esfahbod2007-05-231-11/+14
| | | | | | | | | | | | | | | 2007-05-22 Behdad Esfahbod <behdad@gnome.org> * gtk/gtkprintcontext.c (gtk_print_context_finalize), (_gtk_print_context_new), (_gtk_print_context_get_fontmap), (gtk_print_context_set_cairo_context), (gtk_print_context_get_pango_fontmap), (gtk_print_context_create_pango_context): Don't create new pango fontmaps. Use the default pangocairo fontmap and set resolution on PangoContext instead. (#417707) svn path=/trunk/; revision=17893
* revert last change.Michael Natterer2007-05-211-1/+1
| | | | | | | | | 2007-05-21 Michael Natterer <mitch@imendio.com> * gtk/gtkcombobox.c (gtk_combo_box_set_model): revert last change. svn path=/trunk/; revision=17886
* removed redundant check.Tim Janik2007-05-211-1/+1
| | | | | | | | | | Mon May 21 13:58:32 2007 Tim Janik <timj@imendio.com> * gtk/gtkcombobox.c (gtk_combo_box_set_model): removed redundant check. svn path=/trunk/; revision=17885
* Make it work better with multiple monitors.Tor Lillqvist2007-05-211-3/+3
| | | | | | | | | | 2007-05-21 Tor Lillqvist <tml@novell.com> * gtk/gtkscalebutton.c (gtk_scale_popup): Make it work better with multiple monitors. svn path=/trunk/; revision=17881
* Add the GtkVolumeButton widget, a button that pops up a scale when clickedBastien Nocera2007-05-195-7/+247
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-20 Bastien Nocera <hadess@hadess.net> * gtk/Makefile.am: * gtk/gtk.h: * gtk/gtk.symbols: * gtk/gtkvolumebutton.[ch]: Add the GtkVolumeButton widget, a button that pops up a scale when clicked (Closes: #415775) * tests/Makefile.am: * tests/testvolumebutton.c: Add a test program for the volume button 2007-05-20 Bastien Nocera <hadess@hadess.net> * POTFILES.in: Add volume button to the list 2007-05-20 Bastien Nocera <hadess@hadess.net> * gtk/gtk-sections.txt: Add the GtkVolumeButton widget to the docs svn path=/trunk/; revision=17877
* reviewed by: Matthias Clasen <mclasen@redhat.com>Bastien Nocera2007-05-195-0/+1355
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-19 Bastien Nocera <hadess@hadess.net> reviewed by: Matthias Clasen <mclasen@redhat.com> * gtk/Makefile.am: * gtk/gtk.h: * gtk/gtk.symbols: * gtk/gtkscalebutton.[ch]: Add the GtkScaleButton widget, a button that pops up a scale when pressed 2007-05-19 Bastien Nocera <hadess@hadess.net> * POTFILES.in: Add scale button to the list 2007-05-20 Bastien Nocera <hadess@hadess.net> * gtk/gtk-docs.sgml: * gtk/gtk-sections.txt: add the GtkScaleButton widget to the docs svn path=/trunk/; revision=17876
* Deprecate gtk_notebook_[gs]et_group_id in favour of new functionsMatthias Clasen2007-05-193-17/+95
| | | | | | | | | | | | | | | | 2007-05-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtknotebook.[hc]: Deprecate gtk_notebook_[gs]et_group_id in favour of new functions gtk_notebook_[gs]et_group, which takes a pointer as group identifier and makes it easier to avoid group id collisions. (#386930, Christian Hammond) * tests/testnotebookdnd.c: Use new grouping api. svn path=/trunk/; revision=17873
* Warn and refuse to add actions with duplicate names. (#150877, TommiMatthias Clasen2007-05-191-0/+30
| | | | | | | | | | | 2007-05-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtkactiongroup.c: Warn and refuse to add actions with duplicate names. (#150877, Tommi Komulainen) svn path=/trunk/; revision=17872
* Add gtk_entry_[gs]et_cursor_hadjustment() to allow automatic scrolling inMatthias Clasen2007-05-193-2/+104
| | | | | | | | | | | | | 2007-05-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkentry.[hc]: Add gtk_entry_[gs]et_cursor_hadjustment() to allow automatic scrolling in response to cursor movements in the entry. (#438651, Nate Nielsen) svn path=/trunk/; revision=17871
* Fix the buildMatthias Clasen2007-05-191-1/+1
| | | | svn path=/trunk/; revision=17870
* Add a toggle-cursor-visibility keybinding signal, and bind F7 to it.Matthias Clasen2007-05-181-3/+22
| | | | | | | | | | | 2007-05-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextview.c: Add a toggle-cursor-visibility keybinding signal, and bind F7 to it. (#380048, Tim Miao) svn path=/trunk/; revision=17869
* Add a function to look up an icon from a list of icon names. (#396901,Matthias Clasen2007-05-183-53/+145
| | | | | | | | | | | | | 2007-05-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkicontheme.h: * gtk/gtkicontheme.c: Add a function to look up an icon from a list of icon names. (#396901, Luca Ferretti) svn path=/trunk/; revision=17868
* Reset the state on dispose.Emmanuele Bassi2007-05-181-1/+3
| | | | | | | | | | | | | 2007-05-18 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserdefault.c: (gtk_recent_chooser_default_dispose): Reset the state on dispose. (cleanup_after_load): load_id != 0 && load_state == LOAD_EMPTY is a valid state, if the main loop never had the chance to properly spin at least once. (#438671) svn path=/trunk/; revision=17866
* Mark string for translation. (#439437)Emmanuele Bassi2007-05-181-15/+7
| | | | | | | | | 2007-05-18 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserdefault.c (recent_meta_data_func): Mark string for translation. (#439437) svn path=/trunk/; revision=17865
* Fix a typoMatthias Clasen2007-05-181-3/+2
| | | | svn path=/trunk/; revision=17864
* remove c++ style comment.Carlos Garnacho2007-05-181-1/+0
| | | | | | | | | 2007-05-18 Carlos Garnacho <carlos@imendio.com> * gtk/gtkexpander.c: remove c++ style comment. svn path=/trunk/; revision=17862
* Make combobox menu popdown keybindable (#433593)Carlos Garnacho2007-05-181-24/+50
| | | | | | | | | | | | | | | | | 2007-05-18 Carlos Garnacho <carlos@imendio.com> Make combobox menu popdown keybindable (#433593) * gtk/gtkcombobox.c (gtk_combo_box_class_init): Add "popdown" binding signal and keybindings. (gtk_combo_box_real_popdown): Added, "popdown" keybinding signal handler. (gtk_combo_box_menu_key_press): (gtk_combo_box_list_key_press): forward the event to the combobox if it wasn't handled by the menu. svn path=/trunk/; revision=17861
* Allow widgets up in the hierarchy to run their DnD handlers if the targetCarlos Garnacho2007-05-181-14/+16
| | | | | | | | | | | | 2007-05-18 Carlos Garnacho <carlos@imendio.com> * gtk/gtknotebook.c (gtk_notebook_init) (gtk_notebook_drag_motion) (gtk_notebook_drag_drop): Allow widgets up in the hierarchy to run their DnD handlers if the target doesn't match with anything the notebook manages. (#350665, Joakim Lundborg). svn path=/trunk/; revision=17860
* Refactor GtkFileChooserDialog sizing.Carlos Garnacho2007-05-185-212/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-18 Carlos Garnacho <carlos@imendio.com> Refactor GtkFileChooserDialog sizing. * gtkfilechooserembed.[ch] (delegate_get_resizable_hints) (_gtk_file_chooser_embed_get_resizable_hints): s/resizable_hints/resizable/, return just one boolean value to determine whether the filechooser should be resizable or not. * gtkfilechooserprivate.h (struct GtkFileChooserDialogPrivate): remove variables related to the GtkFileChooserEmbed get_default_size() and get_resizable() implementations. (struct GtkFileChooserDefault): Move default size management here. * gtkfilechooserdefault.c (gtk_file_chooser_default_size_allocate): Added, store currently allocated size to calculate default size later. (gtk_file_chooser_default_get_resizable_hints): s/resizable_hints/resizable/. (gtk_file_chooser_default_set_property): Reload settings if the file chooser action changes, this way the save expander state will be known before mapping the window, avoiding wrong window positioning and flickering. (#424299, #424309) (find_good_size_from_style): Only get size from style if it wasn't set previously. (gtk_file_chooser_default_get_default_size): return default size based on stored default size and preview/extra widget sizes. * gtkfilechooserdialog.c (file_chooser_widget_update_hints) (file_chooser_widget_realized_size_changed) (file_chooser_widget_unrealized_size_changed): simplified to (file_chooser_widget_size_changed): set window size and resizability based on the GtkFileChooserEmbed interface implementation. (Bug #420285, Tomeu Vizoso) (gtk_file_chooser_dialog_map): force a dialog size change, so it's clamped for sure to the 75% of the screen size. svn path=/trunk/; revision=17859
* Do not unset the brand new current page if there was none set previously.Carlos Garnacho2007-05-181-18/+7
| | | | | | | | | | | | 2007-05-18 Carlos Garnacho <carlos@imendio.com> * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Do not unset the brand new current page if there was none set previously. Fixes #425138 (Reported by Michail Crayson). Some code simplifications. (gtk_notebook_draw_arrow): code style fix. svn path=/trunk/; revision=17858
* 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
* Unset priv->platform_data and priv->free_platform_data to preventTorsten Schoenfeld2007-05-151-0/+3
| | | | | | | | | | 2007-05-15 Torsten Schoenfeld <kaffeetisch@gmx.de> * gtk/gtkprintoperation.c (pdf_end_run): Unset priv->platform_data and priv->free_platform_data to prevent gtk_print_operation_finalize() from freeing the cairo surface a second time. svn path=/trunk/; revision=17851
* remove dangling semicolon, fixes the segfault ebassi was seeing earlierKristian Rietveld2007-05-141-1/+1
| | | | | | | | | | | 2007-05-14 Kristian Rietveld <kris@gtk.org> * gtk/gtkfilechooserdefault.c (recent_column_path_sort_func): remove dangling semicolon, fixes the segfault ebassi was seeing earlier today ;) svn path=/trunk/; revision=17848
* Functions: gtk_about_dialog_get/set_name() were deprecated in favour ofTristan Van Berkom2007-05-142-4/+48
| | | | | | | | | | * gtk/gtkaboutdialog.c: Functions: gtk_about_dialog_get/set_name() were deprecated in favour of gtk_about_dialog_get/set_program_name(), the GtkAboutDialog now uses the "program-name" property instead of the conflicting "name" property (fixes bug 345822). svn path=/trunk/; revision=17845
* Add check for GNU extensions to ftw()/nftw().Emmanuele Bassi2007-05-141-8/+23
| | | | | | | | | | | | 2007-05-14 Emmanuele Bassi <ebassi@gnome.org> * configure.in: Add check for GNU extensions to ftw()/nftw(). * gtk/gtksearchenginesimple.c: Fix compilation on systems with only POSIX-compliant ftw(). (#435797, based on a patch by Richard Hult) svn path=/trunk/; revision=17844
* Convert the GtkTreeIter inside the sorting functions for the search andEmmanuele Bassi2007-05-141-20/+47
| | | | | | | | | | | 2007-05-14 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkfilechooserdefault.c: Convert the GtkTreeIter inside the sorting functions for the search and recent modes. This doesn't yet fix the segfault when clicking the 'Name' column in recent mode, though. svn path=/trunk/; revision=17843
* Document scrollbars-within-bevel as 2.12 addition. (#438131, MartMatthias Clasen2007-05-141-0/+7
| | | | | | | | | | | 2007-05-14 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscrolledwindow.c: Document scrollbars-within-bevel as 2.12 addition. (#438131, Mart Raudsepp) svn path=/trunk/; revision=17839
* Fix size requisition for wide vertical separators. (#438113, BenjaminMatthias Clasen2007-05-141-2/+2
| | | | | | | | | | | 2007-05-14 Matthias Clasen <mclasen@redhat.com> * gtk/gtkvseparator.c (gtk_vseparator_size_request): Fix size requisition for wide vertical separators. (#438113, Benjamin Berg) svn path=/trunk/; revision=17837
* Include <ftw.h> and use nftw() and all the symbols defined in <ftw.h>Emmanuele Bassi2007-05-131-6/+14
| | | | | | | | | 2007-05-13 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtksearchenginesimple.c: Include <ftw.h> and use nftw() and all the symbols defined in <ftw.h> conditionally. svn path=/trunk/; revision=17836
* GtkFileChooser search fixes and recent files support. (#435342)Emmanuele Bassi2007-05-111-2/+231
| | | | | | | | | | | | 2007-05-11 Emmanuele Bassi <ebassi@gnome.org> GtkFileChooser search fixes and recent files support. (#435342) * gtk/gtkfilechooserdefault.c: Support drag and drop for adding shortcuts of folders when in search or recent files mode. svn path=/trunk/; revision=17829
* GtkFileChooser search fixes and recent files support. (#435342)Emmanuele Bassi2007-05-112-104/+267
| | | | | | | | | | | | | | | | | | | | 2007-05-11 Emmanuele Bassi <ebassi@gnome.org> GtkFileChooser search fixes and recent files support. (#435342) * gtk/gtkfilechooserprivate.h: * gtk/gtkfilechooserdefault.c: Follow the sorting order of the GtkTreeView displaying the files list. (shortcuts_get_index), (shortcuts_insert_separator), (shortcuts_model_create), (shortcuts_combo_filter_func): Remove the separator between the Search and the Recently Used shortcuts. (list_select_func), (list_icon_data_func), (list_name_data_func), (list_mtime_data_func): Update the sensitivity of the row depending on the GtkFileChooserAction used. svn path=/trunk/; revision=17828
* GtkFileChooser search fixes and recent files support. (#435342)Emmanuele Bassi2007-05-112-43/+303
| | | | | | | | | | | | | 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
* GtkFileChooser search fixes and recent files support. (#435342)Emmanuele Bassi2007-05-111-51/+117
| | | | | | | | | | | | 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
* GtkFileChooser search fixes and recent files support. (#435342)Emmanuele Bassi2007-05-111-20/+49
| | | | | | | | | | | | | | | | 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
* GtkFileChooser search fixes and recent files support. (#435342)Emmanuele Bassi2007-05-112-41/+795
| | | | | | | | | | | | 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
* GtkFileChooser search fixes and recent files support. (#435342)Emmanuele Bassi2007-05-111-58/+122
| | | | | | | | | | | | | | | | | | 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
* Add key binding for the Search shortcut; default to MOD1+S.Emmanuele Bassi2007-05-111-101/+244
| | | | | | | | | | | | | | | | | | 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
* call gdk_event_request_motions(event) so selecting works with XInputMichael Natterer2007-05-111-0/+2
| | | | | | | | | | | 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
* Fall back to GtkSearchEngineSimple only if gthread has already beenEmmanuele Bassi2007-05-111-2/+4
| | | | | | | | | | | 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
* Unparent the old image before overwriting priv->image. (#437281, JochenMatthias Clasen2007-05-101-1/+4
| | | | | | | | | | 2007-05-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkbutton.c (gtk_button_set_image): Unparent the old image before overwriting priv->image. (#437281, Jochen Baier) svn path=/trunk/; revision=17816
* Correct a confusing warning. (#437284, Björn Lindqvist)Matthias Clasen2007-05-101-1/+1
| | | | | | | | | | 2007-05-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_child): Correct a confusing warning. (#437284, Björn Lindqvist) svn path=/trunk/; revision=17815
* Assume Posix nftw behaviourMatthias Clasen2007-05-101-5/+3
| | | | svn path=/trunk/; revision=17812
* Refactored arrow border size, visible area, and sensitive area calculationsCody Russell2007-05-091-133/+184
| | | | svn path=/trunk/; revision=17808
* Disable key bindings during rubber banding, make pressing Esc stop rubberKristian Rietveld2007-05-092-0/+48
| | | | | | | | | | | | | | 2007-05-09 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_key_press), (gtk_tree_view_key_release): * gtk/gtkiconview.c (gtk_icon_view_class_init), (gtk_icon_view_key_press), (gtk_icon_view_key_release): Disable key bindings during rubber banding, make pressing Esc stop rubber banding. (#405027). svn path=/trunk/; revision=17807
* Return GTK_STOCK_DIRECTORY for entries with MIME typeEmmanuele Bassi2007-05-091-2/+7
| | | | | | | | | | 2007-05-09 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentmanager.c: (gtk_recent_info_get_icon): Return GTK_STOCK_DIRECTORY for entries with MIME type "x-directory/normal", instead of GTK_STOCK_FILE. svn path=/trunk/; revision=17804
* Make GTK_JUSTIFY_FILL work, using pango_layout_set_justify() that worksBehdad Esfahbod2007-05-042-12/+13
| | | | | | | | | | | 2007-05-03 Behdad Esfahbod <behdad@gnome.org> * gtk/gtklabel.c (gtk_label_ensure_layout): * gtk/gtktextlayout.c (set_para_values): Make GTK_JUSTIFY_FILL work, using pango_layout_set_justify() that works now. (#435675) svn path=/trunk/; revision=17790