1. 11 Jan, 2002 3 commits
    • Matthias Clasen's avatar
      Expand. · 74fabeda
      Matthias Clasen authored
              * gdk/tmpl/general.sgml (gdk_set_program_class): Expand.
      
              * gtk/running.sgml: New file.
      
              * gtk/building.sgml: Document a few more configure options.
      
              * gtk/Makefile.am (content_files): Add running.sgml.
      
              * gtk/gtk-docs.sgml: Include running.sgml, sort H and V
              variants of widgets to be next to each other.
      74fabeda
    • Tim Janik's avatar
      get rid of extraneous prototype · 5972d435
      Tim Janik authored
      5972d435
    • jacob berkman's avatar
      actually iterate through the list rather than infinitely loop · bebd0215
      jacob berkman authored
      2002-01-10  jacob berkman  <jacob@ximian.com>
      
      	* gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
      	through the list rather than infinitely loop
      bebd0215
  2. 10 Jan, 2002 8 commits
    • Matthias Clasen's avatar
      Rename to reset_rc_styles_recurse(). (#68084) · e5bba6a1
      Matthias Clasen authored
              * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
              reset_rc_styles_recurse(). (#68084)
      
              * gtk/tmpl/gtkaccellabel.sgml: Remove duplicate docs.
      
              * gdk-pixbuf/Makefile.am (content_files): Add
              gdk-pixbuf-from-drawables.sgml. (#68232)
      
              * gtk/tmpl/gtkwidget.sgml: Improve docs for GTK_NO_REPARENT
              and GTK_APP_PAINTABLE. (#68060)
      e5bba6a1
    • Owen Taylor's avatar
      Replace some hardcoded values with the SUBSAMPLE · 868603bc
      Owen Taylor authored
      Thu Jan 10 16:48:30 2002  Owen Taylor  <otaylor@redhat.com>
      
              * pixops/pixops.c: Replace some hardcoded values with the
              SUBSAMPLE
      868603bc
    • Vitaly Tishkov's avatar
      gtk/gtkimage.c gtk/gtkimcontext.c gtk/gtktreemodel.c · f74dd238
      Vitaly Tishkov authored
      2002-01-10            Vitaly Tishkov       <tvv@sparc.spb.su>
              * gtk/gtkimage.c
      	* gtk/gtkimcontext.c
      	* gtk/gtktreemodel.c
      	* gtk/gtktreemodelsort.c
      	* gtk/gtkwindow.c
      	* docs/reference/gtk/tmpl/gtkselection.sgml
      	fix docs
      f74dd238
    • Chyla Zbigniew's avatar
    • Jonathan Blandford's avatar
      get the types as well as the symbols because we need them in · 50a641ae
      Jonathan Blandford authored
      Wed Jan  9 20:56:42 2002  Jonathan Blandford  <jrb@redhat.com>
      
      	* gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
      	symbols because we need them in MyEnhancedXkbTranslateKeyCode.
      50a641ae
    • Tor Lillqvist's avatar
      Apply the same fixes and improvements as to the gtk-1-3-win32-production · 1b7cff47
      Tor Lillqvist authored
      2002-01-10  Tor Lillqvist  <tml@iki.fi>
      
      	Apply the same fixes and improvements as to the
      	gtk-1-3-win32-production branch: Bug fixes and cleanup of
      	selection and DND functionality. Still doesn't work as well as the
      	win32-production branch, though, but getting closer.
      
      	After this, need to add Archaeopteryx Software's OLE2 DND support.
      
      	* gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
      	gdk_selection_send_notify, generate_selection_notify): Don't use
      	SendMessage() to generate events for the same app, instead use
      	gdk_event_put().
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
      	initialisation and handling of gdk_selection_notify_msg,
      	gdk_selection_request_msg and gdk_selection_clear_msg.
      
      	* gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
      	gdk_free_text_list, gdk_string_to_compound_text,
      	gdk_free_compound_text): Implement trivially, witrh a text_list
      	always having a single element, and a compound text always
      	consisting of just a single (UTF-8!) string. Let's see how well
      	this works.
      
      	* gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
      	non-ASCII paste from the clipboard: Try getting the same formats
      	from the Windows clipboard that gdk_property_change() puts there:
      	CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_property_change): When
      	storing text on the clipboard, handle non-ASCII text
      	correctly. The logic is as follows:
      
      	If we have only ASCII characters, use CF_TEXT.
      
      	Else, if we are on NT, use CF_UNICODETEXT.
      
      	Else (we are on Win9x), if all the characters are present in the
      	code page of some installed locale, use CF_TEXT and also set
      	CF_LOCALE to that locale.
      
      	Else (still on Win9x) store as RTF. We use a very simple RTF
      	string, just the text, no fonts or other crap, with the non-ASCII
      	characters as Unicode \uN keywords. Additionally, also store the
      	UTF-8 string as such, under the format "UTF8_STRING", so that GDK
      	can also paste from the Clipboard what it has copied there. (Thus
      	no need to implement any RTF parser.)
      
      	(find_common_locale): New function, implements the search for a
      	locale for case 3 above.
      
      	* gdk/win32/gdkglobals-win32.c: New global variables
      	compound_text, text_uri_list, utf8_string, cf_rtf and
      	cf_utf8_string.
      
      	* gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
      	converts from a wchar_t string to UTF-8.
      	(_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
      	(_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
      
      	* gdk/win32/gdkevents-win32.c (build_keypress_event): Use
      	_gdk_ucs2_to_utf8().
      
      	* gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
      
      	* gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
      	gdk_drag_context_ref() was called unnecessarily in a couple of
      	places, meaning drag contexts were never freed. The same memory
      	leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
      
      	(gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
      	stored file list.
      
      	* gdk/win32/gdkselection-win32.c: Clarify the use of the
      	sel_prop_table. Now it is used only for storing the GDK_SELECTION
      	"properties".
      
      	The file names dropped with WM_DROPFILES -style DND is stored
      	temporarily (between the drop and the target picking them up) in a
      	separate place.
      
      	Have a separate hash table to map selection atoms to owner
      	windows. This used to be quite mixed up.
      
      	(_gdk_dropfiles_store): New function, to store the dropped file
      	list for the drop target to possibly fetch, and clear it
      	afterwards, from gdk_drop_reply().
      
      	(gdk_selection_owner_get): Much simplified now.
      1b7cff47
    • jacob berkman's avatar
      set the background of our bin window also (fixes #58957) · f3f0ad29
      jacob berkman authored
      2002-01-09  jacob berkman  <jacob@ximian.com>
      
      	* gtk/gtklayout.c (gtk_layout_style_set): set the background of
      	our bin window also (fixes #58957)
      f3f0ad29
    • Jonathan Blandford's avatar
      Now we test we can unselect nodes before selecting new ones. · ed50ebfb
      Jonathan Blandford authored
      Wed Jan  9 19:10:07 2002  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeselection.c
      	(_gtk_tree_selection_internal_select_node): Now we test we can
      	unselect nodes before selecting new ones.
      	(gtk_tree_selection_real_select_node): be careful comparing booleans.
      ed50ebfb
  3. 09 Jan, 2002 11 commits
    • Kristian Rietveld's avatar
      pass NULL to gtk_tree_model_rows_reordered and not an iter with user_data · b9908897
      Kristian Rietveld authored
      Wed Jan  9 21:31:44 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
              gtk_tree_model_rows_reordered and not an iter with user_data
              set to NULL (which is an invalid liststore iter, so
              iter_n_children failed, etc)
      b9908897
    • Owen Taylor's avatar
      Include glib-object.h, Add G_BEGIN_DECLS/END_DECLS to · add14c9e
      Owen Taylor authored
      Wed Jan  9 11:29:44 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* Makefile.am (s-enum-types-h): Include glib-object.h,
      	Add G_BEGIN_DECLS/END_DECLS to gdk-pixbuf-enum-types.h. (#68325,
      	Mikael Hermansson)
      
      	* *.h: G_BEGIN_DECLS cleanups.
      add14c9e
    • Sven Neumann's avatar
      declared internal functions static. · 89cfdce4
      Sven Neumann authored
      2002-01-09  Sven Neumann  <sven@gimp.org>
      
      	* tests/prop-editor.c: declared internal functions static.
      89cfdce4
    • Owen Taylor's avatar
      Fix problem with menus without accel groups, such as the menus for option · d36fa9bd
      Owen Taylor authored
      Wed Jan  9 11:13:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path):
              Fix problem with menus without accel groups, such as the
              menus for option menus.
      
              * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
              drawing of handle on whether both children are visible,
              not the drawing of the other child!. (#68325, Diego Gonzalez)
      d36fa9bd
    • Owen Taylor's avatar
      Check for RENDER before trying to use it... XRenderFindFormat() prints · 63e511bc
      Owen Taylor authored
      Wed Jan  9 10:20:16 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
      	RENDER before trying to use it... XRenderFindFormat() prints
      	warnings if called when extension isn't present.
      63e511bc
    • Tim Janik's avatar
      update the accel path upon parent changes. · 9b2a1356
      Tim Janik authored
      Wed Jan  9 15:20:40 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
              path upon parent changes.
      9b2a1356
    • Tim Janik's avatar
      small but important fix to force vadjustments at size_alocate time from · cdcb272f
      Tim Janik authored
      Wed Jan  9 13:20:14 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
              fix to force vadjustments at size_alocate time from Xavier Ordoquy
              <mcarkan@users.sourceforge.net>.
      cdcb272f
    • Tim Janik's avatar
      don't cast a possible NULL pointer. · adb892f2
      Tim Janik authored
      Wed Jan  9 11:23:39 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtklayout.c (gtk_layout_get_property):
              * gtk/gtkspinbutton.c (gtk_spin_button_get_property):
              * gtk/gtktreeview.c (gtk_tree_view_get_property):
              * gtk/gtkwidget.c (gtk_widget_get_property):
              * gtk/gtkfontsel.c (gtk_font_selection_get_property):
              * gtk/gtkrange.c (gtk_range_get_property):
              * gtk/gtkviewport.c (gtk_viewport_get_property):
              * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
              possible NULL pointer.
      adb892f2
    • Mike Kestner's avatar
      Use G_TYPE_INSTANCE_GET_INTERFACE. ditto. ditto. ditto. Don't reference · 8ccfa3ed
      Mike Kestner authored
      
      2002-01-08  Mike Kestner  <mkestner@speakeasy.net>
      
      	* gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
      	* gtk/gtktreednd.h : ditto.
      	* gtk/gtktreemodel.h : ditto.
      	* gtk/gtktreesortable.h : ditto.
      	* gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
      8ccfa3ed
    • Matthias Clasen's avatar
      Improve wording. · 3d818fe5
      Matthias Clasen authored
      3d818fe5
    • Matthias Clasen's avatar
      Speak of window IDs rather than XIDs in the docs. · 4127a267
      Matthias Clasen authored
              * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather
              than XIDs in the docs.
      
              * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
      
              * gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkplug.sgml: speak of
              window IDs rather than XIDs.
      4127a267
  4. 08 Jan, 2002 12 commits
    • Jonathan Blandford's avatar
      wow! Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b") · 9f35f366
      Jonathan Blandford authored
      Tue Jan  8 18:39:23 2002  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
      	Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
      9f35f366
    • Owen Taylor's avatar
      Handle TOGGLE/RADIOBUTTON as well. (#68201, Damon Chaplin.) · 5c71539c
      Owen Taylor authored
      Tue Jan  8 18:04:01 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
      	Handle TOGGLE/RADIOBUTTON as well. (#68201,
      	Damon Chaplin.)
      
      	* gtk/gtktoolbar.c (get_first_child): Fix stupid
      	bug, just introduced.
      5c71539c
    • Owen Taylor's avatar
      Fix coordinate translations, once and for all. · cc605cf5
      Owen Taylor authored
      Tue Jan  8 15:53:28 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
      	translations, once and for all.
      
      	* gtk/gtktextbuffer.c (paste_from_buffer): Free
      	the ClipboardRequest structure. (#66198, HideToshi
      	Tajima)
      cc605cf5
    • jacob berkman's avatar
      queue a resize on · c4591330
      jacob berkman authored
      2002-01-08  jacob berkman  <jacob@ximian.com>
      
      	* gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
      c4591330
    • Owen Taylor's avatar
      Don't draw the handle if we aren't showing both children. (#68135, Diego · 74e88267
      Owen Taylor authored
      Tue Jan  8 14:51:19 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkpaned.c (gtk_paned_expose): Don't draw
      	the handle if we aren't showing both children.
      	(#68135, Diego Gonzalez)
      74e88267
    • Owen Taylor's avatar
      Fix leak of result of gtk_container_get_children(). · 17fef0f8
      Owen Taylor authored
      Tue Jan  8 14:45:43 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_add_events): Fix
      	leak of result of gtk_container_get_children().
      17fef0f8
    • Owen Taylor's avatar
      Fix leaks of results of gtk_container_get_children(). (#68199, Damon · fda8a3de
      Owen Taylor authored
      Tue Jan  8 14:42:19 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktoolbar.c: Fix leaks of results of
      	gtk_container_get_children(). (#68199, Damon Chaplin)
      fda8a3de
    • Owen Taylor's avatar
      Fix problem where child->requisition was accessed directly instead of · 07d4e54c
      Owen Taylor authored
      Tue Jan  8 14:19:43 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
      	Fix problem where child->requisition was accessed
      	directly instead of calling get_child_requisition()
      	(#68199, Damon Chaplin)
      07d4e54c
    • Owen Taylor's avatar
      - Massive cleanup, make actually legible. - Fix some clamp-to-range bugs · b24d44e4
      Owen Taylor authored
      Tue Jan  8 10:58:04 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk-pixbuf-util.c (gdk_pixbuf_saturate_and_pixelate):
               - Massive cleanup, make actually legible.
               - Fix some clamp-to-range bugs found by Jim Cape (#68231).
               - Add a g_return_if_fail() if src and dest alpha don't match.
               - Allow for src_rowstride != dest_rowstride.
      b24d44e4
    • James Henstridge's avatar
      add trailing */ on doc comment. · fff24bb0
      James Henstridge authored
      2001-01-08  James Henstridge  <james@daa.com.au>
      
              * gtk/gtkstyle.c: add trailing */ on doc comment.
      fff24bb0
    • Owen Taylor's avatar
      Fix a problem where were the offset into the image was passed into · f1742682
      Owen Taylor authored
      Mon Jan  7 22:19:32 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
              problem where were the offset into the image was passed
              into convert_to_format() wrong.
      
              * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
              gdk_x11_drawable_update_picture_clip () before using
              the picture; allow update_picture_clip() to take a NULL gc
              to mean no clipping.
      f1742682
    • Matthias Clasen's avatar
      Doc typo fix. (#68172) · c1808baa
      Matthias Clasen authored
              * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
      
              * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
      
              * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
      
              * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
      
              * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
              gtk/gtkwidget.c (gtk_widget_get_toplevel,
              gtk_widget_push_composite_child), gtk/gtkdialog.c
              (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
              from messing up the indentation of inline examples.
      
              * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
              instead of getenv().
      
              * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
              gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
              gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
      
              * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
              gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
              Document.
      
              * gtk/tmpl/gtksocket.sgml: Mention gtk_socket_get_id()
              instead of GTK_WINDOW_XWINDOW().  (#68172)
      
              * gtk/gtk-sections.txt: Move functions which are documented
              as "private" or "internal" into Private subsections.
      
              * gtk/tmpl/gtkdnd.sgml, gtk/tmpl/gtkobject.sgml,
              gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtktooltips.sgml,
              gtk/tmpl/gtkwidget.sgml, gtk/tmpl/gtkclipboard.sgml,
              gtk/tmpl/gtkstyle.sgml, gtk/tmpl/gtkselection.sgml,
              gtk/tmpl/gtkfeatures.sgml: Minor markup fixes.
      
              * gtk/tmpl/gtksignal.sgml: Add link to GLib signal docs.
      
              * gtk/tmpl/gtkpreview.sgml, gtk/tmpl/gtktext.sgml,
              gtk/tmpl/gtktree.sgml: Remove "deprecated" from short desc.
      
              * gtk/tmpl/gtkrc.sgml: Correct names of default RC files.
      c1808baa
  5. 07 Jan, 2002 4 commits
    • Chyla Zbigniew's avatar
    • Anders Carlsson's avatar
      Remove unused pixels and rowstride variables. · 8ab98f3a
      Anders Carlsson authored
      2002-01-07  Anders Carlsson  <andersca@gnu.org>
      
      	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
      	unused pixels and rowstride variables.
      	(gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
      8ab98f3a
    • Tim Janik's avatar
      don't forget to offset the pointer by x/y_offset into the new window when · 1901d4eb
      Tim Janik authored
      Mon Jan  7 08:48:23 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
              the pointer by x/y_offset into the new window when we found
              the drag destination.
      
              * gtk/gtkaccelmap.c (internal_change_entry): fix return code
              for simulation when the entry already contains the required
              accel key and mod.
      1901d4eb
    • Matthias Clasen's avatar
      Replace GTK_NO_CHECK_CASTS by G_DISABLE_CAST_CHECKS. · ed29c8dd
      Matthias Clasen authored
              * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by
              G_DISABLE_CAST_CHECKS.
      
              * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
              gtk_accel_group_query, gtk_accel_group_find,
              gtk_accel_groups_from_object): Document.
      
              * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
      
              * gtk/tmpl/gtktypeutils.sgml: Replace GTK_NO_CHECK_CASTS by
              G_DISABLE_CAST_CHECKS, fix some markup and add stuff.
      
              * gtk/tmpl/gtkaccelgroup.sgml, gtk/tmpl/gtkwidget.sgml: Additions.
      
              * gtk/gtk-sections.txt: Make gtk_accel_group_get_type private.
      ed29c8dd
  6. 06 Jan, 2002 2 commits
    • Havoc Pennington's avatar
      a few more questions I thought of · ef121a06
      Havoc Pennington authored
      2002-01-06  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/question_index.sgml: a few more questions I thought of
      ef121a06
    • Havoc Pennington's avatar
      remove gtk- prefix from TreeView and a few other entities, more consistent · 824e8e2d
      Havoc Pennington authored
      2002-01-06  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtk-docs.sgml: remove gtk- prefix from TreeView and a few
      	other entities, more consistent anyway (I thought this would make
      	links to "GtkTreeView" etc. go to the ref page, not the struct,
      	but it wasn't the problem, the issue is the way gtkdoc-mkdb
      	decides what's an object, see CheckIsObject() routine)
      
      	* gtk/changes-1.2.sgml: sgml fixes to get rid of warnings
      
      	* gtk/changes-2.0.sgml: ditto
      
      	* gtk/question_index.sgml: add some questions
      824e8e2d