1. 26 Sep, 2010 1 commit
    • Benjamin Otte's avatar
      Move GtkSizeRequest into GtkWidget · d9c92598
      Benjamin Otte authored
      It doesn't make sense to keep them separate as GtkSizeRequest requires a
      GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
      one without the other.
      It also makes the code a lot easier because no casts are required when
      calling functions.
      
      Also, the names would translate to gtk_widget_get_width() and people
      agreed that this would be a too generic name, so a "preferred" was added
      to the names.
      
      So this patch moves the functions:
      gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
      gtk_size_request_get_width() => gtk_widget_get_preferred_width()
      gtk_size_request_get_height() => gtk_widget_get_preferred_height()
      gtk_size_request_get_size() => gtk_widget_get_preferred_size()
      gtk_size_request_get_width_for_height() =>
        gtk_widget_get_preferred_width_for_height()
      gtk_size_request_get_height_for_width() =>
        gtk_widget_get_preferred_height_for_width()
      ... and moves the corresponding vfuncs to the GtkWidgetClass.
      
      The patch also renames the implementations of the vfuncs in widgets to
      include the word "preferrred".
      d9c92598
  2. 15 Sep, 2010 1 commit
  3. 13 Sep, 2010 1 commit
  4. 08 Sep, 2010 2 commits
    • Javier Jardon's avatar
    • Tristan Van Berkom's avatar
      Completely removed requisition cache from GtkWidget instance structure. · 99340074
      Tristan Van Berkom authored
      Since we have a new mechanism for requesting sizes: GtkSizeRequestIface;
      it makes no sense to maintain this cache on the GtkWidget structure...
      removing the requisition cache however does not break the old "size-request"
      signal which is there for backwards compatability reasons.
      
      In any case widget->requisition should not have been accessed,
      gtk_widget_get_child_requisition() would have been the correct way
      to consult the cache.
      
      This commit also deprecates the newly added gtk_widget_get_requisition()
      API and makes it fallback on gtk_size_request_get_size().
      99340074
  5. 13 Jul, 2010 1 commit
  6. 10 Jul, 2010 1 commit
  7. 20 Apr, 2010 1 commit
  8. 04 Apr, 2010 6 commits
  9. 09 Mar, 2010 1 commit
  10. 06 Mar, 2010 2 commits
  11. 03 Mar, 2010 1 commit
  12. 01 Mar, 2010 2 commits
  13. 12 Jun, 2009 1 commit
  14. 05 Jun, 2009 1 commit
  15. 12 Aug, 2008 2 commits
    • Michael Natterer's avatar
      gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkentry.c · d9d33796
      Michael Natterer authored
      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
      d9d33796
    • Michael Natterer's avatar
      consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance) · e18d3c6f
      Michael Natterer authored
      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
      e18d3c6f
  16. 11 Aug, 2008 1 commit
    • Sven Neumann's avatar
      gtk/gtkaboutdialog.c gtk/gtkcellrendereraccel.c gtk/gtkcellrenderercombo.c · 2a959785
      Sven Neumann authored
      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
      2a959785
  17. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      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
      d97cdbdf
  18. 13 Jun, 2008 1 commit
    • Matthias Clasen's avatar
      Really make GtkFileSystem private by _-prefixing all functions. · f9c7a4bb
      Matthias Clasen authored
      
              * 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
      f9c7a4bb
  19. 10 Jun, 2008 1 commit
    • Carlos Garnacho's avatar
      Bug 520874 - Should use gio directly. · 640d6877
      Carlos Garnacho authored
      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
      640d6877
  20. 03 Mar, 2008 1 commit
  21. 16 Feb, 2008 1 commit
  22. 12 Feb, 2008 1 commit
    • Matthias Clasen's avatar
      Use gtk_selection_data_set_uris() instead of doing it by hand. (#514890, · 6a80b177
      Matthias Clasen authored
      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
      6a80b177
  23. 09 Jan, 2008 1 commit
    • Michael Natterer's avatar
      remove unused variable. · 9c7a2c32
      Michael Natterer authored
      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
      9c7a2c32
  24. 20 Jul, 2007 1 commit
  25. 07 Jun, 2007 1 commit
    • Matthias Clasen's avatar
      Use g_get_user_special_dir() to obtain the path for the DESKTOP directory. · 232f30f1
      Matthias Clasen authored
      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
      232f30f1
  26. 04 Jun, 2007 1 commit
    • Cody Russell's avatar
      Check if down_button is NULL. This happens when the pathbar button for the · ea8f3758
      Cody Russell authored
      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
      ea8f3758
  27. 16 May, 2007 1 commit
  28. 09 Mar, 2007 1 commit
  29. 22 Dec, 2006 1 commit
  30. 09 Nov, 2006 1 commit
  31. 08 Nov, 2006 1 commit