summaryrefslogtreecommitdiff
path: root/gtk/gtkhandlebox.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed, because that's what a NULL comparison function means. And itOwen Taylor1998-04-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Apr 7 19:36:48 1998 Owen Taylor <owt1@cornell.edu> * gutils.c (g_direct_compare): Removed, because that's what a NULL comparison function means. And it wasn't 64 bit safe. Tue Apr 7 19:14:03 1998 Owen Taylor <owt1@cornell.edu> * gdk/gdkpixmap.c: Added maximum field widths to prevent possible '%s' scanf overflows. Replaced scanf("%c") with getc(), Don't interpret /*/ as a full comment. Use g_realloc/g_new. * gtk/gtkwidget.h gtk/gtkprivate.h: Changed all flag tests to check for ((GTK_WIDGET_FLAGS(widget) & FLAG) != 0) instead of (GTK_WIDGET_FLAGS(widget) & FLAG) * gtk/gtkfilesel.c: Use getwd() instead of getcwd() on SunOS, because getcwd() hangs up in a wait4(). (Found by David Monniaux <monniaux@clipper.ens.fr>) - Check device/inode/mtime not just inode/mtime, when caching scanned directories. (From: scottk@ig.utexas.edu (Scott Kempf)) * gdk/gdkpixmap.c: Check for 0 width/height when creating pixmaps. * gtk/*.c: Global substitution of recently introduced "MAX (0," for allocations to "MAX (1,", since creating a backing pixmap with a zero width or height fails. * gdk/gdkwindow.c (gdk_window_new): Don't set all the WM properties for child windows. Don't set the base size, since the value we set will be taken as a minimum size.
* New function to draw a nifty "textured metal" frame. Could be useful inFederico Mena Quintero1998-04-041-52/+48
| | | | | | | | | 1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx> * gtk/gtkhandlebox.c (draw_textured_frame): New function to draw a nifty "textured metal" frame. Could be useful in gtkstyle.c, maybe. (gtk_handle_box_paint): Paint a handle that does not make you puke when you look at it.
* More extensive debugging outputOwen Taylor1998-04-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Apr 3 17:14:55 1998 Owen Taylor <owt1@cornell.edu> * gdk/gdk.c: More extensive debugging output * gtk/gtkalignment.c gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkclist.c gtk/gtkeventbox.c gtk/gtkhandlebox.c gtk/gtk[hv]box.c gtk/gtk[hv]paned.c gtk/gtklist.c gtk/gtkmenu.c gtk/gtkmenubar.c gtk/gtkmenuitem.c gtk/gtknotebook.c gtk/gtktable.c gtk/gtktree.c gtk/gtktreeitem.c gtk/gtkviewport.c Avoid assigning negative values to unsigned allocation.width and height * gtk/gtkwindow.c: Instead of realizing the widget, then size allocating, (resulting in XMoveResizeWindows for all children, do the size allocation first, then realize. In gtk_real_window_move_resize, combine move and resize into a single GDK/X call when possible. * gtk/gtkclist.c gtk/gtkdrawingarea.c: Remove assumption that the widget will be size allocated _after_ it is realized. * gtk/gtklist.c (gtk_list_motion_notify): Removed useless debugging message.
* Don't clear the window on an expose event. On draws, just clear theOwen Taylor1998-03-281-2/+8
| | | | | | | | | | | | | | Fri Mar 27 17:58:41 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkhandlebox.c (gtk_handle_box_paint): Don't clear the window on an expose event. On draws, just clear the portion we are redrawing. * gdk/gdkfont.c (gdk_fontset_load): Corrected calculation of fontset ascent/descent. * gtk/gtkwidget.[ch]: Added new function to show a toplevel window and wait for it to be mapped, gtk_window_show_now ()
* removed a leftover g_print() callTim Janik1998-03-251-1/+0
| | | | -timj
* implemented new flag shrink_on_detach (TRUE by default) which will causeTim Janik1998-03-241-17/+44
| | | | | | | | | | | | Tue Mar 24 14:59:50 1998 Tim Janik <timj@gtk.org> * gtk/gtkhandlebox.h: * gtk/gtkhandlebox.c: implemented new flag shrink_on_detach (TRUE by default) which will cause the handle boxes requisition to collapse in case the child is already detached. removed duplicate ChangeLog entry from owen.
* Quick fix for size allocation -- needs more work overallJay Painter1998-03-241-6/+16
|
* major overhaul of the code, fixed all known bugs (hopefully ;).Tim Janik1998-03-211-293/+541
| | | | | | | | | | | | | | | | | | | Sat Mar 21 22:54:31 1998 Tim Janik <timj@gtk.org> * gtk/gtkhandlebox.h: * gtk/gtkhandlebox.c: major overhaul of the code, fixed all known bugs (hopefully ;). Sat Mar 20 15:33:17 1998 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c (gtk_widget_real_show): queue the resize for the parent. Thu Mar 19 02:00:50 1998 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c (gtk_widget_unrealize): unset flags after emission, especially GTK_MAPPED, since that might not have been taken care of by an UNMAP emission.
* refuse to allocate with a greater height than requested.Tim Janik1998-03-141-7/+55
| | | | | | | | | | | Sat Mar 14 08:29:56 1998 Tim Janik <timj@gimp.org> * gtk/gtkhandlebox.c (gtk_handle_box_size_allocate): refuse to allocate with a greater height than requested. (gtk_handle_box_remove): clean up if the child is detached. * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): don't take invisible children into account.
* return TRUE for GtkWidget::delete_event to avoid destruction of our floatTim Janik1998-03-121-1/+1
| | | | | | | | | | | | | | | | Thu Mar 12 20:17:47 1998 Tim Janik <timj@gimp.org> * gtk/gtkhandlebox.c (gtk_handle_box_delete_float): return TRUE for GtkWidget::delete_event to avoid destruction of our float window. * gtk/gtkmain.c (gtk_main_iteration_do): GDK_DELETE will destroy a widget if the last handler returned FALSE or there was none connected. * gtk/testgtk.c: adapted all delete_event/destroy case that were affected. * gtk/gtkwidget.c (gtk_widget_delete_hides): new function that will hide a widget and return TRUE to avoid window deletion if connected to GtkWIdget::delete_event.
* made the <widget>_signals[] arrays of type guint rather than gint. madeTim Janik1998-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Mar 9 15:48:10 1998 Tim Janik <timj@gimp.org> * Signal signedness and naming corrections, plus GtkType fixes: * gtk/gtkadjustment.c: * gtk/gtkbutton.c: * gtk/gtkcheckmenuitem.c: * gtk/gtkclist.c: * gtk/gtkcolorsel.c: * gtk/gtkcontainer.c: * gtk/gtkcurve.c: * gtk/gtkdata.c: * gtk/gtkeditable.c: * gtk/gtkentry.c: * gtk/gtkhandlebox.c: * gtk/gtkinputdialog.c: * gtk/gtkitem.c: * gtk/gtklist.c: * gtk/gtkmenuitem.c: * gtk/gtkmenushell.c: * gtk/gtknotebook.c: * gtk/gtkstatusbar.c: * gtk/gtktoolbar.c: * gtk/gtktree.c: * gtk/gtktreeitem.c: * gtk/gtkwidget.c: * gtk/gtktogglebutton.c: * gtk/gtkwindow.c: made the <widget>_signals[] arrays of type guint rather than gint. * gtk/gtkwidget.c (gtk_widget_get_ancestor): made widget_type a GtkType. * gtk/gtkcombo.h: handler ids need to be of type guint (entry_change_id, list_change_id). * gtk/gtkaccelerator.c: changed signal_num to signal_id and typed it guint. * gtk/gtkmain.c: made gtk_ndebug_keys a guint. * gtk/gtkmenu.h: * gtk/gtkmenu.c: (gtk_menu_popup): made button a guint. (gtk_menu_set_active): made index a guint. * gtk/gtkmenuitem.h: * gtk/gtkmenuitem.c: made accelerator_signal a guint. * gtk/gtkoptionmenu.h: * gtk/gtkoptionmenu.c: (gtk_option_menu_set_history): made index a guint. * gtk/gtksignal.h: * gtk/gtksignal.c: * gtk/gtkobject.h: * gtk/gtkobject.c: changed a bunch of prototypes to take guints rather than gints. also made some conversions from guint to GtkType, left over from when the fundamental-types system was introduced. * gtk/gtkobject.h: * gtk/gtkobject.c: made object_data_id_index and obj_count guints. made *signals and nsignals guints in GtkObjectClass.
* handle box signals. fixups for 99.4 -timjTim Janik1998-02-281-1/+46
| | | | | | handle box signals. fixups for 99.4 -timj
* reserve the space for child_attach/child_detach signals.Tim Janik1998-02-281-0/+14
|
* gtk/gtktext.cOwen Taylor1998-02-271-6/+2
| | | | | | | | | | | | | | | | | | | | | | Fri Feb 27 01:11:55 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtktext.c - gtk_text_delete and gtk_text_insert now update caches and refresh screen correctly if the text widget isn't frozen. - Fixed bug where text->first_line_start_index wasn't being updated correctly on insertion and deletion. - Added new public macro GTK_TEXT_INDEX (text, ind), and function gtk_text_get_chars(text, index, nchars); Thu Feb 26 22:36:46 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkhandlebox.c (gtk_handle_box_realize): Use MWM hints to undecorate window. * gtk/testgtk.c gtk/circles.xbm: new test for WM hints.
* Fixed unrealize handler to comply with the documentation (which mentionsFederico Mena Quintero1998-02-121-11/+3
| | | | | | | | | | | | | | | | | | 2018-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx> * gtk/gtkclist.c: * gtk/gtkentry.c: * gtk/gtkfixed.c: * gtk/gtkhandlebox.c: * gtk/gtknotebook.c: * gtk/gtkpaned.c: * gtk/gtkpreview.c: * gtk/gtkrange.c: * gtk/gtkruler.c: * gtk/gtktext.c: * gtk/gtkviewport.c: Fixed unrealize handler to comply with the documentation (which mentions the right thing to do).
* fixed destroy handler, so it doesn't segfault with the new refcountingTim Janik1998-02-021-7/+11
| | | | | | | | | | | | | | | | | | | 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.
* Oops, forgot a clean-up - FedericoArturo Espinosa1998-01-281-3/+0
|
* The auto_shrink policy of the floating window is now set to TRUE. ThisFederico Mena1998-01-281-4/+28
| | | | | | | | | | | 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.
* gtkbutton.c gtkclist.c gtkdrawingarea.c gtkentry.c gtkeventbox.cOwen Taylor1998-01-181-7/+10
| | | | | | | | | | | | | | | | | | | | | 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.)
* Now we use a GtkWindow of type GTK_WINDOW_DIALOG as a destination forFederico Mena1998-01-161-53/+59
| | | | | | | | | | | | | | | | Fri Jan 16 00:36:31 1998 Federico Mena <federico@bananoid.nuclecu.unam.mx> * gtk/gtkhandlebox.c: Now we use a GtkWindow of type GTK_WINDOW_DIALOG as a destination for reparenting the child of the handle box. This solves the problem of having X calls in Gtk. It also makes the handle box work with KWM, OLVWM, 4Dwm (so I expect mwm to work as well). I hadn't noticed that previously it only worked with fvwm and twm. * gtk/gtkhandlebox.h (struct _GtkHandleBox): Removed the real_parent field, as it is never used. (struct _GtkHandleBox): Added a float_window field. This is a GtkWindow to where the child is now reparented.
* Lots of changes all over the place. Now the widget has two windows. TheFederico Mena1998-01-161-214/+412
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Jan 16 00:36:31 1998 Federico Mena <federico@bananoid.nuclecu.unam.mx> * gtk/gtkhandlebox.c: Lots of changes all over the place. Now the widget has two windows. The steady_window stays put in the parent container, and the widget->window is the one that gets reparented. Now that window is transient, in compliance with the ICCCM, instead of an OverrideRedirect window. We have two windows so that we can properly receive Expose events for the thin 3D line that marks the place where the handlebox is docked. * gtk/gtkhandlebox.h (struct _GtkHandleBox): Added fields for dragging (mouse position information). Added fleur_cursor so that we look pretty. Added steady_window field; it is the window that actually stays on the parent (widget->window is the one that gets reparented). Owen, this is the version with the two X calls in gtkhandlebox.c. I'll do as you say; either we can add new calls to Gdk, or I can modify the handle box code to use a separate GtkWindow and reparent the child into that. - Federico
* main part for GtkArgSetFunc/GtkArgGetFunc implementation.Tim Janik1998-01-161-1/+2
| | | | -timj
* copyright noticesElliot Lee1998-01-081-0/+1
|
* Some geometry management bugs fixed (and some others added -- will fix themArturo Espinosa1998-01-051-48/+62
| | | | | | | | | today). Next I will make the handle box use a transient window. It should be done that way, according to the ICCCM. We have to talk to the KDE guys to use their window manager protocol to let the WM know that we don't want decoration on our window. This has to be hacked into other WMs, too. - Federico
* Several portability fixes from Michael Callahan <callahan@xmission.com>Shawn Amundson1998-01-031-0/+1
| | | | | | | | * Several portability fixes from Michael Callahan <callahan@xmission.com> including adding in missing #includes and adding void in function prototypes. -Shawn
* Go back to old handlebox for now, so we can get a release outGTK_0_99_1Elliot Lee1998-01-021-14/+1
|
* GtkHandleBox needs some changes, it might not work nowElliot Lee1998-01-011-1/+14
|
* handlebox now lets you set in_root flag (and if you set that, its location ↵Elliot Lee1998-01-011-8/+10
| | | | as well)
* HandleBox mostly works now (the size_request and size_allocate is black ↵Elliot Lee1997-12-281-50/+35
| | | | magic to me, I am lucky it works :) Plus a few other changes
* A few fixes to the handlebox, mostly to make it debuggableElliot Lee1997-12-281-17/+42
|
* Eliminated a compiler warning caused by not casting an argument in ascott1997-12-261-1/+1
| | | | debugging message. :)
* The handlebox is almost finished. Just need help with resizing theElliot Lee1997-12-221-22/+96
| | | | parent - anyone know what I should be doing?
* Fixed dragging of handleboxElliot Lee1997-12-221-5/+11
|
* OK, handle box is good to go except for having the parent resize when it is ↵Elliot Lee1997-12-191-7/+15
| | | | dragged out, and also allowing user to drag it back into the original parent
* more gtkhandlebox painting stuff..Elliot Lee1997-12-191-14/+29
|
* more gtkhandlebox work..Elliot Lee1997-12-191-22/+55
|
* handlebox modsElliot Lee1997-12-181-1/+2
|
* Added root coords to button & motion events - sopwithElliot Lee1997-12-171-19/+66
|
* Start of work on a widget to allow you to drag other widgets in and out ofElliot Lee1997-12-161-0/+228
windows (i.e. like KDE has for its menu bars). - sopwith