1. 03 Feb, 1998 4 commits
    • Owen Taylor's avatar
      Only query the colormap for GRAYSCALE and PSEUDOCOLOR visuals, and don't · 3b0de24a
      Owen Taylor authored
      Tue Feb  3 15:34:27 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gdk/gdkcolor.c (gdk_colormap_get_system): Only query
      	  the colormap for GRAYSCALE and PSEUDOCOLOR visuals,
      	  and don't ask for more than 256 colors in any case.
      
      	* gdk/gdkwindow.c (gdk_window_internal_destroy): Remove
      	  the input window information when we destroy the window,
      	  not when we are notified of it.
      
      	* gdk/gdkinputcommon.h (gdk_input_device_new): Work around
      	  bug in XFree86 3.3.1's handling of Wacom macro buttons.
      	  by assumming no device will report exactly 25 buttons.
      
      	* gdk/gdkinputcommon.h (gdk_input_common_other_event): Fill
      	  in string translation for generated key press events,
      	  do sanity checking on received key codes.
      
      	* gdk/gdkcc.c (gdk_color_context_new): Allocate enough
      	  room for a GdkColorContextPrivate, not just for a
      	  GdkColorContext.
      3b0de24a
    • Tim Janik's avatar
      don't add the same menu to different menuitems/ optionmenus. · 58423110
      Tim Janik authored
      Tue Feb  3 15:09:55 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/testgtk.c: don't add the same menu to different menuitems/
                optionmenus.
      
              * gtk/gtkmenuitem.h:
              * gtk/gtkmenuitem.c: new function gtk_menu_item_remove_submenu ro
                be consistent with optionmenu. use gtk_menu_attach_to_widget/
                gtk_menu_detach for setting/removing the submenu.
                invoke gtk_widget_destroy(submenu) in destructor to be consistent
                with other destructors.
      
              * gtk/gtkoptionmenu.h:
              * gtk/gtkoptionmenu.c: attach/detach to menu widget via
                gtk_menu_attach_to_widget/gtk_menu_detach.
                invoke gtk_widget_destroy(menu) in destructor to be consistent
                with other destructors.
      58423110
    • Tim Janik's avatar
      attach/detach to menu widget via · b45cd043
      Tim Janik authored
      Tue Feb  3 15:09:55 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkoptionmenu.h:
              * gtk/gtkoptionmenu.c: attach/detach to menu widget via
      
              * gtk/gtkmenu.h:
              * gtk/gtkmenu.c: new functions gtk_menu_attach_to_widget
                and gtk_menu_detach that correspond to the action of
                gtk_widget_set_parent and gtk_widget_unparent.
      
              * gtk/widget.c: few fixups.
      b45cd043
    • Owen Taylor's avatar
      gtk/gtktable.c Fixed problem with division by zero in row/column-spanned · a8629917
      Owen Taylor authored
      Tue Feb  3 00:12:00 1998  Owen Taylor  <owt1@cornell.edu>
      	* gtk/gtktable.c
      	  Fixed problem with division by zero in row/column-spanned
      	  tables. Also removed a bunch of conditionals by making
      	  the observation that x/1 == x.
      a8629917
  2. 02 Feb, 1998 5 commits
    • Tim Janik's avatar
      changed name to reflect that these macros in fact can't operate on · b239e3c9
      Tim Janik authored
      Mon Feb  2 04:15:08 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkwindow.c:
              * gtk/gtkwidget.c:
              * gtk/gtkmain.c:
              * gtk/gtkwidget.c:
              * gtk/gtkcontainer.c:
              * gtk/gtkprivate.h (GTK_PRIVATE_UNSET_FLAG) (GTK_PRIVATE_UNSET_FLAGS):
                changed name to reflect that these macros in fact can't operate on
                multiple flags.
      b239e3c9
    • Tim Janik's avatar
      fixed destroy handler, so it doesn't segfault with the new refcounting · 6b5e983f
      Tim Janik authored
      Mon Feb  2 04:15:08 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtktoolbar.c: fixed destroy handler, so it doesn't
                segfault with the new refcounting scheme anymore.
      
              * gtk/gtkhandlebox.c:
              * gtk/gtkclist.c:
              * gtk/gtkentry.c:
              * gtk/gtkrange.c:
              * gtk/gtktext.c:
              * gtk/gtkviewport.c:
                enforced
                gdk_window_set_user_data (window, NULL);
                gdk_window_destroy (window);
                window = NULL;
                throughout the code.
      6b5e983f
    • Tim Janik's avatar
      fixed a bad, bad referencing bug that could caused unreferencing of · eeaefdf0
      Tim Janik authored
      Mon Feb  2 04:15:08 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkmain.c (gtk_propagate_event): fixed a bad, bad referencing
                bug that could caused unreferencing of finalized objects.
      
              * gtk/testgtk.c: destroy fileselection on "OK" (this triggered the
                above mentioned bug).
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c:
              * gtk/gtkobject.h:
              * gtk/gtkobject.c:
                implemented and object reference tracer (gtk_trace_referencing) which
                is activated if GTK_TRACE_OBJECTS is defined (currently per default).
                in gdb: set the static variable `gtk_trace_object' to point to the
                object that you want to have reference traced.
      
              * gtk/gtkfileselection.c: few cleanups.
      eeaefdf0
    • Tim Janik's avatar
      cleanups with key name spaces. · 8822bde1
      Tim Janik authored
      Mon Feb  2 04:15:08 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkcolorsel.c:
              * gtk/gtkcombo.c:
              * gtk/gtkobject.c:
              * gtk/gtkselection.c:
              * gtk/gtkwidget.c:
              * gtk/gtkwindow.c:
                cleanups with key name spaces.
      
              * gtk/gtkcombo.c: fixed destruction bug with popwin.
      8822bde1
    • Tim Janik's avatar
      hehe, forgot the ChangeLog · 35ba1ac7
      Tim Janik authored
      -timj
      35ba1ac7
  3. 01 Feb, 1998 1 commit
    • Owen Taylor's avatar
      Added a new GTK_IN_REPARENT flag and revised gtk_widget_reparent so that · 1522f2ae
      Owen Taylor authored
      Sat Jan 31 21:26:27 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkwidget.c: Added a new GTK_IN_REPARENT flag and revised
      	  gtk_widget_reparent so that the child would not be unrealized
      	  unnecessarily. Changed gtk_widget_unrealize () to recursively
      	  unrealize the children (since the child windows will be
      	  destroyed too.)
      1522f2ae
  4. 31 Jan, 1998 5 commits
  5. 30 Jan, 1998 1 commit
    • Owen Taylor's avatar
      Close the polygon if it isn't already. (To match gtk_draw_polygon) · 7922f343
      Owen Taylor authored
      Thu Jan 29 22:57:39 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gtk/gtkstyle.c (gtk_default_draw_polygon): Close
      	  the polygon if it isn't already. (To match gtk_draw_polygon)
      	  Simplified logic. (Appearance could probably be
      	  improved for objects with gradual curves by adding in
      	  some intermediate edge coloration)
      7922f343
  6. 29 Jan, 1998 1 commit
    • Tim Janik's avatar
      new function to gather information about a certain signal. · 38bffa52
      Tim Janik authored
      Thu Jan 29 21:36:14 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtksignal.c (gtk_signal_query): new function to gather
                information about a certain signal.
      
              * gtk/gtksignal.c (gtk_signal_newv): new function similar to
                gtk_signal_new().
      
              * gtk/gtksignal.c (gtk_signal_real_emit): check for function_offset
                == 0.
      
              * gtk/gtksignal.c (gtk_signal_connect_by_type): perform a signal
                id lookup on the parent as well.
      
              * gtk/gtkobject.c (gtk_object_class_add_user_signal): new
                function for implementation of user defined signals.
              * gtk/gtkobject.c (gtk_object_class_add_signals): free old
                signal id array.
      
              * gtk/gtkobject.h: this holds the typedefs for GtkSignalFunc and
                GtkSignalMarshaller now, because they are used for
                gtk_object_class_add_user_signal.
      
              * gtk/gtktypeutils.c (gtk_type_class_init): reset object_class->signals
                and object_class->nsignals for new object classes.
      38bffa52
  7. 28 Jan, 1998 1 commit
    • Federico Mena's avatar
      The auto_shrink policy of the floating window is now set to TRUE. This · bad1cb0f
      Federico Mena authored
      Tue Jan 27 15:52:48 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>
      
      	* gtk/gtkhandlebox.c (gtk_handle_box_realize): The auto_shrink
      	policy of the floating window is now set to TRUE.  This fixes the
      	problem of the floating window being too big when the handlebox
      	child is small.
      	(gtk_handle_box_motion): Now we use GDK_POINTER_MOTION_HINT_MASK
      	to improve movement.
      bad1cb0f
  8. 27 Jan, 1998 1 commit
  9. 26 Jan, 1998 3 commits
  10. 25 Jan, 1998 1 commit
    • Tim Janik's avatar
      added new widget flag GTK_LEAVE_PENDING. if a widget has GTK_LEAVE_PENDING · edf9e176
      Tim Janik authored
      Sun Jan 25 19:15:32 1998  Tim Janik  <timj@gimp.org>
      
              * gtk/gtkwidget.h (enum): added new widget flag GTK_LEAVE_PENDING.
              * gtk/gtkmain.c (gtk_main_iteration_do): if a widget has
                GTK_LEAVE_PENDING set, send it its LEAVE_NOTIFY event, regardless
                of a grab or sensitivity.
                changed the compression code for enter/leave notify events to
                free *both* compressed event, and removed an unneccessary call
                to g_list_remove.
      
              * ChangeLog: finally catched up with the recent changes on my part.
      edf9e176
  11. 23 Jan, 1998 2 commits
  12. 22 Jan, 1998 1 commit
  13. 21 Jan, 1998 3 commits
  14. 20 Jan, 1998 1 commit
  15. 19 Jan, 1998 3 commits
    • Federico Mena's avatar
      Set container_class->focus to NULL. Widgets in the toolbar should not get · 53ac2efc
      Federico Mena authored
      Mon Jan 19 16:21:00 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>
      
      	* gtk/gtktoolbar.c (gtk_toolbar_class_init): Set
      	container_class->focus to NULL.  Widgets in the toolbar should not
      	get the focus via the normal key bindings (no toolkit does this,
      	and it makes sense).
      53ac2efc
    • Federico Mena's avatar
      Removed the GTK_PIXMAP casts to match Eckehard's new prototypes. · 73386d57
      Federico Mena authored
      Mon Jan 19 16:21:00 1998  Federico Mena  <federico@bananoid.nuclecu.unam.mx>
      
      	* gtk/testgtk.c (create_toolbar): Removed the GTK_PIXMAP casts to
      	match Eckehard's new prototypes.
      
      	* gtk/gtktoolbar.h: Switched the order of the tooltip_text and
      	widget parameters to the gtk_toolbar_*_widget() functions, to be
      	friendlier to the C++ bindings.  This is per request of Guillaume
      	Laurent.
      73386d57
    • Tim Janik's avatar
      this is a stack of grabbing widgets now, having unique entries. the · 1a8765e6
      Tim Janik authored
      Mon Jan 19 09:16:38 1998  Tim Janik  <timj@psynet.net>
      
              * gtk/gtkmain.c (gtk_grab_add) (gtk_grab_remove): this is a stack
                of grabbing widgets now, having unique entries. the GTK_HAS_GRAB
                flag of a widget is set while it is on the stack (wasn't
                implemented before).
      1a8765e6
  16. 18 Jan, 1998 6 commits
    • MET  Eckehard Berns's avatar
      changed gtk_toolbar_{append,prepend,inser]_item to accept any GtkWidget as · 0c6a6baa
      MET Eckehard Berns authored
      Mon Jan 19 00:46:18 1998 MET  Eckehard Berns  <eb@berns.prima.de>
      
      	* gtk/gtktoolbar.[ch]: changed
       	  gtk_toolbar_{append,prepend,inser]_item to accept any GtkWidget
       	  as icon to allow more flexibility
      0c6a6baa
    • Shawn Amundson's avatar
      Statusbar widget. -Shawn · 67e67570
      Shawn Amundson authored
      Statusbar widget.
      -Shawn
      67e67570
    • Owen Taylor's avatar
      renamed g_string_equal => g_str_equal renamed g_string_hash => g_str_hash · 4628759d
      Owen Taylor authored
      Sat Jan 17 23:52:40 1998  Owen Taylor  <owt1@cornell.edu>
      
      	* gstring.{c,h} gscanner.c:
      	   renamed g_string_equal => g_str_equal
      	   renamed g_string_hash => g_str_hash
      	  And const corrected. Old functions left in for now.
      4628759d
    • Owen Taylor's avatar
      gtkbutton.c gtkclist.c gtkdrawingarea.c gtkentry.c gtkeventbox.c · 11d37c50
      Owen Taylor authored
      Sun Jan 18 09:57:00 1998  Owen Taylor  <owt1@cornell.edu>
      * gtkbutton.c gtkclist.c gtkdrawingarea.c gtkentry.c gtkeventbox.c
        gtkfixed.c gtkhandlebox.c gtkhscale.c gtkhscrollbar.c gtkitem.c
        gtklist.c gtkmenushell.c gtkmisc.c gtknotebook.c gtkpaned.c
        gtkpreview.c gtkprogressbar.c gtkruler.c gtktext.c gtktree.c
        gtkviewport.c gtkvscale.c gtkvscrollbar.c gtkwidget.{c,h}
      
        Added gtk_widget_set_parent and gtk_widget_get_parent. All
        widgets should use:
      
         gtk_widget_get_parent() instead of widget->parent->window.
      
        Any widget that wants to have children not in the parent window,
        should use gtk_widget_set_parent () in their realize() and
        add () routines.
      
        CList and Viewport widgets changed to do this. (Viewport
        widget using code from gtk-fortier-980117-0.patch.)
      11d37c50
    • Tim Janik's avatar
      updates... -timj · 1e34b9ba
      Tim Janik authored
      updates...
      -timj
      1e34b9ba
    • Tim Janik's avatar
      new functions gtk_box_reorder_child, gtk_box_query_child_packing and · 40808fa0
      Tim Janik authored
      Sun Jan 18 03:57:52 1998  Tim Janik  <timj@psynet.net>
      
              * gtk/gtkbox.h:
              * gtk/gtkbox.c: new functions gtk_box_reorder_child,
              gtk_box_query_child_packing and gtk_box_set_child_packing to
              allow modification of the child linkage after the widget tree
              is setup.
      
              * gtk/gtkbox.c:
              * gtk/gtklabel.c:
              * gtk/gtkwindow.c:
              * gtk/gtkwidget.c:
              * gtk/gtkobject.c: gtk_*_get_arg() and gtk_*_set_arg() fixes
                and implementations.
      40808fa0
  17. 17 Jan, 1998 1 commit