1. 03 Dec, 2001 1 commit
  2. 30 Nov, 2001 4 commits
    • jacob berkman's avatar
      set the signal id to 0 after we disconnect from it · 5e0b93dc
      jacob berkman authored
      2001-11-30  jacob berkman  <jacob@ximian.com>
      
      	* gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
      	signal id to 0 after we disconnect from it
      5e0b93dc
    • Matthias Clasen's avatar
      Deprecate. · 101d4488
      Matthias Clasen authored
              * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
              gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
              gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
              gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref):  Deprecate.
      
              * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
              GTK_DISABLE_DEPRECATED.
      
              * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
              gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
      
              * gdk/tmpl/colors.sgml, gdk/tmpl/pixmaps.sgml, gdk/tmpl/dnd.sgml,
              gdk/tmpl/gcs.sgml: Document ref and unref functions as deprecated.
      101d4488
    • Owen Taylor's avatar
      Sanitize move/resize code, removing various bad, non-functional hacks. · d2b64a0b
      Owen Taylor authored
      Fri Nov 30 16:37:01 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
      	move/resize code, removing various bad, non-functional
      	hacks. (Fixes #65048, reported by Damon Chaplin.)
      d2b64a0b
    • Owen Taylor's avatar
      Patch from Hidetoshi Tajima to fix bad match error when target drawable is · 845d3701
      Owen Taylor authored
      Fri Nov 30 16:12:21 2001  Owen Taylor  <otaylor@redhat.com>
      	* gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix
      	bad match error when target drawable is not the
      	same depth as the root window. (#65841)
      	* HACKING: Update.
      845d3701
  3. 29 Nov, 2001 5 commits
    • Matthias Clasen's avatar
      Typo fix. · 24aef23a
      Matthias Clasen authored
              * gdk/gdkwindow.c: Typo fix.
      
              * gtk/gtk-sections.sgml: Add GtkTextChildAnchor.
      
              * gdk/tmpl/dnd.sgml: Updates.
      
              * gdk/tmpl/pango_interaction.sgml: Document GdkPangoAttrEmbossed
              and GdkPangoAttrStipple.
      24aef23a
    • Kristian Rietveld's avatar
      add checks for empty menu items to behave like insensitive items (#59456) · 209d0867
      Kristian Rietveld authored
      Thu Nov 29 21:35:56 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
              empty menu items to behave like insensitive items (#59456)
      
              * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
              next item if the first item in the menu is a tear off item
              (#59456-2, suggestion by Matthias Clasen)
      
              * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
              (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
              (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
              (gtk_real_menu_shell_activate_current): add check, so empty
              menu items behave like insensitive items (#59456)
      
              * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
              the checks more readable ...
      
              * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
              (gtk_menu_shell_button_release): causes the menu to dropdown if the
              caption is clicked again (#64977)
      209d0867
    • Havoc Pennington's avatar
      assertion here that we were at the end iterator was not correct; change · ddfc7377
      Havoc Pennington authored
      2001-11-29  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
      	assertion here that we were at the end iterator was not correct;
      	change code to move us to the end iterator. bug #65731
      ddfc7377
    • Owen Taylor's avatar
      Remove improper use of g_locale_to_utf8() to convert from latin-1, and do · ea644d35
      Owen Taylor authored
      Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove
      	improper use of g_locale_to_utf8() to convert from
      	latin-1, and do it the easy way by building the string
      	correctly in the first place.
      ea644d35
    • Owen Taylor's avatar
      Convert atoms to and from atoms for properties of type XA_ATOM. (#65555, · 51f1c2a7
      Owen Taylor authored
      Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
      	* gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get):
      	Convert atoms to and from atoms for properties of type XA_ATOM.
      	(#65555, patch from Hidetoshi Tajima)
      51f1c2a7
  4. 28 Nov, 2001 9 commits
    • Owen Taylor's avatar
      Rename 'id' parameter to avoid problems with Objective C. · 3e332260
      Owen Taylor authored
      Wed Nov 28 18:37:04 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter
      	to avoid problems with Objective C.
      3e332260
    • Matthias Clasen's avatar
      Typo fixes. (#65607) · a381648f
      Matthias Clasen authored
              * gtk/gtkaccelmap.c: Typo fixes. (#65607)
      
              * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
              Fix docs. (#65505)
      
              * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
      
              * gtk/tmpl/gtkwindow.sgml: Document gtk_window_position.
      
              * gdk/tmpl/dnd.sgml: Document GdkDragProtocol and GdkDragContext.
      
              * gdk/tmpl/events.sgml: Document gdk_setting_get.
      
              * gdk/tmpl/fonts.sgml: Document gdk_font_full_name_get and
              gdk_font_full_name_free.
      
              * gdk/tmpl/windows.sgml: Document gdk_window_register_dnd.
      a381648f
    • Owen Taylor's avatar
      Move accounting of menu->tearoff_scrollbar width to here and make sure we · 476d2a84
      Owen Taylor authored
      Wed Nov 28 18:19:12 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
              accounting of menu->tearoff_scrollbar width to here
              and make sure we have the correct requisition.
      
              * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
              by using gtk_window_move().
      
              * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
              the requisition to be updated by calling
              gtk_widget_size_request() (#65440)
      
              * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate):
              queue resize before calling gtk_menu_set_tearoff_state().
      476d2a84
    • Kristian Rietveld's avatar
      fix typo · 2418e923
      Kristian Rietveld authored
      Wed Nov 28 22:20:44 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * demos/gtk-demo/editable_cells.c: fix typo
      
              * demos/gtk-demo/list_store.c (add_columns): remove call to
              gtk_tree_view_column_set_clickable which didn't make sense
      2418e923
    • Havoc Pennington's avatar
      put the warning explaining the validation error in front of the · 53da925c
      Havoc Pennington authored
      2001-11-28  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_paint): put the warning
      	explaining the validation error in front of the G_BREAKPOINT
      
      	* gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
      	process updates with include_children = FALSE instead of TRUE, so
      	we redraw the range only, not the whole darn window.  Making
      	GtkRange a NO_WINDOW widget had weirdly caused the text widget
      	Trace/breakpoint trap bug to become much easier to trigger.
      53da925c
    • Owen Taylor's avatar
      Remove reference to gdkcursors.h. · 931fe180
      Owen Taylor authored
      Wed Nov 28 14:12:03 2001  Owen Taylor  <otaylor@redhat.com>
      	* gdk/Makefile.am (gdk_public_h_sources): Remove reference
      	to gdkcursors.h.
      931fe180
    • Matthias Clasen's avatar
      Add markup to docs. · fa7f3023
      Matthias Clasen authored
              * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
      fa7f3023
    • Matthias Clasen's avatar
      forgotten Changelog entry. · 0b0b2b64
      Matthias Clasen authored
      0b0b2b64
    • Owen Taylor's avatar
      Notify on the ::active property _here_, not in · 488463ef
      Owen Taylor authored
      Tue Nov 27 20:17:55 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
      	Notify on the ::active property _here_, not in
      	gtk_check_menu_item_set_active.
      488463ef
  5. 27 Nov, 2001 1 commit
  6. 26 Nov, 2001 2 commits
    • Owen Taylor's avatar
      Add long, but horribly sketchy comment about what is going on in this · 6a252271
      Owen Taylor authored
      Sun Nov 25 21:19:02 2001  Owen Taylor  <otaylor@redhat.com>
      	* gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
      	comment about what is going on in this file.
      	* gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
      	x/y problem.
      6a252271
    • Owen Taylor's avatar
      Calculate size based on the _child_ of the menu item, not the menuitem. · bc99cf97
      Owen Taylor authored
      Sun Nov 25 18:59:19 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkoptionmenu.c (gtk_option_menu_calc_size):
      	Calculate size based on the _child_ of the menu item,
      	not the menuitem. (#65005, Damon Chaplin)
      	* gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
      	some extra vertical padding to the label widget ... restores
      	GTK+-1.2 spacing. (#65085, Damon Chaplin.)
      bc99cf97
  7. 25 Nov, 2001 2 commits
    • Tor Lillqvist's avatar
      demos/pixbuf-demo.c M_PI -> G_PI. · 9a60bfac
      Tor Lillqvist authored
      2001-11-26  Tor Lillqvist  <tml@iki.fi>
      
      	* demos/pixbuf-demo.c
      	* demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
      
      	* demos/gtk-demo/main.c (read_line): No flockfile() or
      	getc_unlocked() on Win32.
      
      2001-11-25  Tor Lillqvist  <tml@iki.fi>
      
      	* configure.in
      	* acconfig.h: As we now use GDir, no need to check for dirent.h.
      9a60bfac
    • Kristian Rietveld's avatar
      free font_desc when finished (#65266) · 7a181cf5
      Kristian Rietveld authored
      Sun Nov 25 23:18:39 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
              when finished (#65266)
      
      Sun Nov 25 23:16:29 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
              data after we set the property. (#65264)
      
      Sun Nov 25 23:14:06 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtkbutton.c: add destroy method so label_text gets freed
              if it has been allocated (#65268)
      7a181cf5
  8. 24 Nov, 2001 5 commits
  9. 23 Nov, 2001 5 commits
    • Owen Taylor's avatar
      Remove some strange arithmetic that was resulting in rows being drawn too · 46a8d6e8
      Owen Taylor authored
      Fri Nov 23 18:49:53 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
      	arithmetic that was resulting in rows being drawn too low.
      	(#65001, reported by Damon Chaplin)
      46a8d6e8
    • Owen Taylor's avatar
      Offset invalidated range correctly. Fix scrolling of title window. · 11239567
      Owen Taylor authored
      Fri Nov 23 18:36:42 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkrange.c (gtk_range_button_press): Offset
      	invalidated range correctly.
      	* gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling
      	of title window. (#65001, reported by Damon Chaplin)
      	* gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
      	horrible hack with use of ::event_after.
      11239567
    • Owen Taylor's avatar
      Version 1.3.11 Require GLib-1.3.11, Pango-0.22, ATK-0.7. Restore to · 2936c8e9
      Owen Taylor authored
      Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
              * Version 1.3.11
              * configure.in (ATK_REQUIRED_VERSION): Require
              GLib-1.3.11, Pango-0.22, ATK-0.7.
              * tests/prop-editor.c (property_widget): Restore
              to working as well as it did before.
              * gtk/gtklistitem.h: Mark deprecated since it is
              an integral part of GtkList.
              * demos/gtk-demo/demo-common.h: New header file,
              for a common functions not important to the meat
              of the demos.
      
              * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
              function to search for a file used by the demo.
              * demos/*.c: Use demo_find_file.
      2936c8e9
    • Matthias Clasen's avatar
      Actually commit typo fixes already mentioned in ChangeLog entry on · dcfc3876
      Matthias Clasen authored
              * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
              gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo
              fixes already mentioned in ChangeLog entry on 2001-11-14.
      
              * docs/reference/gdk/tmpl/drawing.sgml: Minor markup fixes.
      dcfc3876
    • Hans Breuer's avatar
      reflect Pango API change · 36ddd7d9
      Hans Breuer authored
      2001-11-23  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkfont-win32.c (gdk_font_from_description) :
      	reflect Pango API change
      
      	* gtk/gtk.def : updated externals
      
      	* gtk/gtkfixed.c (gtk_fixed_get_has_window) : use
      	g_return_val_if_fail() to avoid 'function must return a value'
      
      	* gtk/gtkrc.c : added spaces to fix small coding style issues
      	* gtk/gtkwidget.c : ... and linebreaks. Also a static for
      	'static correctness'
      
      	* gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
      	because they only can be build on win32 after applying my patch
      36ddd7d9
  10. 21 Nov, 2001 5 commits
    • Tim Janik's avatar
      raise event window afte children, in order for the input pnly window to · 656ff6e8
      Tim Janik authored
      Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbutton.c (gtk_button_map): raise event window afte
              children, in order for the input pnly window to stay *above*
              children.
      
      Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
      
              * tests/testtreeview.c: make hackery worse ;) by checking fundamental
              type walks againts G_TYPE_FUNDAMENTAL_MAX.
      
              * tests/prop-editor.c: disable type hackery.
      656ff6e8
    • Owen Taylor's avatar
      Fix problem with lost parameter. · aa1a46e2
      Owen Taylor authored
      Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkimage.c (gdk_image_get): Fix problem with
              lost parameter.
      aa1a46e2
    • Owen Taylor's avatar
      Remove trailing commas in enum declarations. · 9b6c7327
      Owen Taylor authored
      Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkcellrenderer.h gtk/gtktreemodel.h
      	gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
      	trailing commas in enum declarations.
      9b6c7327
    • Owen Taylor's avatar
      Version 1.3.11, interface, binary age 0. · bffb11e1
      Owen Taylor authored
      Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (GTK_MICRO_VERSION): Version 1.3.11,
      	interface, binary age 0.
      
      	* NEWS: Updates
      
      	* gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
      	fixes in docs.
      
      	* gtk/gtkmain.h: Remove unused and misnamespaced
      	get_gtk_win32_directory() prototype.
      
      	* gdk/gdkimage.c (gdk_image_get): Fix parameter names
      	to match header.
      
      	* gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
      	gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
      	to match docs.
      
      	* gdk/gdkevents.c (gdk_event_get_coords)
      	  gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
      	  gtk/gtkdnd.c (gtk_drag_set_icon_stock):
      	Fix parameter names in docs.
      
      	* docs/faq/Makefile.am (FAQ_FILES): Add missing files.
      	(#64961, Akira Tagoh)
      bffb11e1
    • Owen Taylor's avatar
      Ref-sink the tooltips object. Ref-sink the tooltips object. Fix some · c860866d
      Owen Taylor authored
      Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
      	* tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
      	* gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
      	* gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
      	* gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
      	back to gtk_accel_groups_from_object(), change @acceleratable
      	parameter to gtk_accel_groups_activate() accordingly.
      	* gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
      	left-over comment about quark return.
      	* gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
       	* gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
              (Patch from Matt Wilson)
      	* gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
      	object is finalized.
      c860866d
  11. 20 Nov, 2001 1 commit
    • Tim Janik's avatar
      applied patch from owen to get rid of accel map notifiers. changed things · 9800f731
      Tim Janik authored
      Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
      
      	* applied patch from owen to get rid of accel map notifiers.
      	changed things to fix reentrancy and API as discussed on gtk-devel.
      
      	* gtk/gtkaccelgroup.[hc]:
      	(gtk_accel_group_finalize): unregister this accel group from all
      	accel map paths.
      	(accel_closure_invalidate): handle invalidation of closures by
      	disconnecting their accelerators.
      	(quick_accel_add): move closure connection and changed notification
      	into this function to reduce code duplication. don't emit change
      	notification on closurers without accelerators.
      	(quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
      	for a GtkAccelGroupEntry.
      	(gtk_accel_group_connect): get rid of the accel_path_quark argument.
      	(gtk_accel_group_connect_by_path): new function to add accelerators
      	with an accel path.
      	(gtk_accel_group_disconnect_closure): new function, disconnect a
      	closure from of an accel group.
      	(gtk_accel_group_disconnect): loop over all closure for a accel_ley,
      	accel_mods pair and remove them.
      	(_gtk_accel_group_reconnect): new function that basically does
      	gtk_accel_group_disconnect_closure() and
      	gtk_accel_group_connect_by_path() once an accel path changed.
      	(gtk_accel_groups_disconnect_closure): remove this, there's
      	gtk_accel_group_disconnect_closure().
      
      	* gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
      	nuke notifiers.
      	(_gtk_accel_path_is_valid): make this non-static for
      	gtkwidget.c and gtkaccelgroup.c assertions.
      	(gtk_accel_map_add_notifer): removed this function.
      	(gtk_accel_map_remove_notifer): same.
      	(_gtk_accel_map_add_group):
      	(_gtk_accel_map_remove_group): (un-)register accel groups, with
      	accel paths for correct propagation.
      	(gtk_accel_map_add_entry): return void.
      	(gtk_accel_map_lookup): return gboolean instead of GQuark.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
      	set accel_path on widgets.
      
      	* gtk/gtkwidget.[hc]:
      	(accel_path_changed): got rid of this, changes are handled by
      	accel maps internally now.
      	(_gtk_widget_set_accel_path): get things to work without notifiers.
      	(gtk_widget_list_accel_closures): list accel closures of a widget.
      
      	* gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
      9800f731