summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* rm -rf intl breaks --disable-nls, put it backManish Singh1998-12-173-11/+15
| | | | | | | | | | * autogen.sh: rm -rf intl breaks --disable-nls, put it back * gtkbutton.[ch] * gtktogglebutton.c: s/(enter|leave)/$1_button/g. Digital: 1 GTK+: 0 (for now) -Yosh
* Remove unnecessary cast.Owen Taylor1998-12-171-1/+0
| | | | | | | Wed Dec 16 23:32:05 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtklabel.c (gtk_label_expose): Remove unnecessary cast.
* *** empty log message ***Arturo Espinosa1998-12-162-0/+58
|
* Do nothing on empty string, quietly.Owen Taylor1998-12-161-4/+3
| | | | | | | Wed Dec 16 16:04:41 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtklabel.c (gtk_label_expose): Do nothing on empty string, quietly.
* Redraw the character under the cursor when removing the cursor.Owen Taylor1998-12-162-4/+18
| | | | | | | | Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Redraw the character under the cursor when removing the cursor.
* Move main thread lock back to GDK - we need it there for locking whenOwen Taylor1998-12-1623-105/+53
| | | | | | | | | | | | | | Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main thread lock back to GDK - we need it there for locking when translating events. Rename things appropriately. Wed Dec 16 11:44:21 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c (gtk_range_expose): Fix a x/y typo. CVS:
* Released GTK+ 1.1.8GTK_1_1_8CST 1998 Shawn T. Amundson1998-12-161-0/+1
| | | | | | | | | | | | Wed Dec 16 10:20:27 CST 1998 Shawn T. Amundson <amundson@gtk.org> * Released GTK+ 1.1.8 * ChangeLog: INSTALL: README: gtk+.spec: docs/gtk-config.1: version=1.1.8
* version bump to 1.1.8, binary age 0, interface age 0, depend on GLibTim Janik1998-12-1621-73/+115
| | | | | | | | | | | | | | | | | Wed Dec 16 05:26:32 1998 Tim Janik <timj@gtk.org> * configure.in: version bump to 1.1.8, binary age 0, interface age 0, depend on GLib 1.1.8. * gdk/gdkprivate.h: * gdk/gdkglobals.c: removed last Gdk threads specific bits. * gtk/gtkmain.c (gtk_init): s/g_thread_supported/g_thread_supported()/. * gtk/gtkprivate.h: changed GTK_THREADS_ENTER and GTK_THREADS_LEAVE to function macros GTK_THREADS_ENTER() and GTK_THREADS_LEAVE(). honour G_THREADS_ENABLED in the definition of GTK_THREADS_ENTER() and GTK_THREADS_LEAVE(). changed callers accordingly.
* Create buttons, not combos again.Owen Taylor1998-12-161-2/+1
| | | | | | | Tue Dec 15 21:36:14 1998 Owen Taylor <otaylor@redhat.com> * gtk/testgtk.c (create_layout): Create buttons, not combos again.
* removed clist flag : GTK_CLIST_DRAG_SELECTION added flags :Lars Hamann1998-12-165-1144/+1554
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Dec 15 22:30:44 1998 Lars Hamann <lars@gtk.org> * gtk/gtkclist.h : removed clist flag : GTK_CLIST_DRAG_SELECTION added flags : GTK_CLIST_REORDERABLE, GTK_CLIST_USE_DRAG_ICONS, GTK_CLIST_DRAW_DRAG_LINE, GTK_CLIST_DRAW_DRAG_RECT (GtkCListDragPos) : new enum for DND (GtkButtonAction) : new enum of possible mouse button actions (struct _GtkCList): added button_actions array. Added drag_button and click_cell struct, to store cell and mouse button of last button_press_event (struct _GtkCListClass): new class method draw_drag_highlight. (gtk_clist_set_reorderable) (gtk_clist_set_use_drag_icons) : new functions. Moved from gtkctree.h. Now clist is reorderable as well. (gtk_clist_set_button_actions) new function to customize mouse button actions. * gtk/gtkclist.c: (gtk_clist_drag_begin) (gtk_clist_drag_motion) (gtk_clist_drag_leave) (gtk_clist_drag_end) (gtk_clist_drag_drop) (gtk_clist_drag_data_get) (gtk_clist_drag_data_received) : new dnd widget methods to implement clists reorderability via DND (remove_grab) : new function. remove mouse grab if necessary. (draw_drag_highlight) : new method. Draw dnd highlight depending on clist flags GTK_CLIST_DRAW_DRAG_LINE and GTK_CLIST_DRAW_DRAG_RECT (gtk_clist_class_init): added object args "reorderable" and "use_drag_icons" (gtk_clist_button_press) (gtk_clist_button_release) : use button_actions array to decide which action to perform. (gtk_clist_motion) : start reorder operation if necessary. * gtk/gtkctree.h : (struct _GtkCTree): removed drag_icon, icon_widht, icon_height, drag_row, drag_source, drag_target, reorderable, use_icons, in_drag, drag_rect (gtk_ctree_set_reorderable) : deprecated function. use gtk_clist_set_reorderable instead. (gtk_ctree_set_use_drag_icons) : deprecated function. use gtk_clist_set_use_drag_icons instead. * gtk/gtkctree.c : (gtk_ctree_class_init): removed object args "reorderable" and and "use_drag_icons" (draw_xor_line) (draw_xor_rect) (create_drag_icon) (check_cursor) (tree_toggle_selection) (set_mouse_cursor) : removed (draw_drag_highlight) : new clist method. replacement for draw_xor_line and draw_xor_rect functions (check_drag) renamed check_cursor function (gtk_ctree_drag_begin) (gtk_ctree_drag_motion) (gtk_ctree_drag_data_received) : new dnd methods to implement ctrees reorderability via DND (gtk_ctree_button_release) (gtk_ctree_button_motion) : removed. * gtk/testgtk.c: (create_clist) : added new reorderable toggle button
* Use base[NORMAL] instead of bg[PRELIGHT] so CLists now can be used inOwen Taylor1998-12-163-62/+92
| | | | | | | | Tue Dec 15 19:50:41 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkctree.c gtk/gtkclist.c gtk/testgtk.c: Use base[NORMAL] instead of bg[PRELIGHT] so CLists now can be used in detergent commercials.
* Remove --with-threads, unused GTK_THREAD_FLAGSJeff Garzik1998-12-161-1/+0
|
* Moved gtk_label_set() compatiblity define from <gtkcompat.h> toOwen Taylor1998-12-152-1/+3
| | | | | | | | Tue Dec 15 16:54:09 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtklabel.h: Moved gtk_label_set() compatiblity define from <gtkcompat.h> to <gtklabel.h> for compatibility.
* Added gdk_text_extents_wc()Owen Taylor1998-12-1514-439/+751
| | | | | | | | | | | | | | | | | | | Tue Dec 15 14:30:35 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdk.h gdk/gdkfonts.c: Added gdk_text_extents_wc() * Patch from Jonathan Blanford <jrb@redhat.com> to add line wrapping to label. (Based on patch from Jeff Dairiki <dairiki@mac-ceope.apl.washington.edu> gtk-dairiki-971208-0) - Adds new function gtk_label_set_line_wrap() - implement GTK_JUSTIFY_FILL. - rename gtk_label_set to gtk_label_set_text() add gtk_label_set() to gtkcompat.h. * Use an internal wc representation in the label, so that we handle underlining and line breaks correctly for multi-byte strings.
* Added GTK_USER_DRAW flag.Owen Taylor1998-12-157-12/+16
| | | | | | | | | | | Tue Dec 15 13:32:28 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.h: Added GTK_USER_DRAW flag. * gtk/gtkwindow.c: Honor GTK_USER_DRAW flag. * gtk/gtkdrawwindow.c gtk/Makefile.am: Removed GtkDrawWindow, which GTK_USER_DRAW obsoletes.
* Fixed up some warnings.Owen Taylor1998-12-156-46/+266
| | | | | | | | | | | | | | Tue Dec 15 11:37:05 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkmain.c: Fixed up some warnings. Tue Dec 15 10:32:01 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtk{h,v,}paned.{c,h}: Add new functions gtk_paned_set_position(), gtk_paned_pack1/2(). The latter take a shrink and resize parameters, that allows setting minimum sizes and getting 'relative' resizing.
* Removed unused variable, fixed minor memory leak.Owen Taylor1998-12-151-1/+1
| | | | | | | | | Tue Dec 15 09:22:44 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtkrc.c (gtk_rc_init): Removed unused variable, fixed minor memory leak. * gdk/gdk.c: Fixed another merge problem.
* Commented out testthreads from the build process, since we won't have anyOwen Taylor1998-12-1522-892/+546
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Dec 15 01:38:53 1998 Owen Taylor <otaylor@redhat.com> * gtk/Makefile.am: Commented out testthreads from the build process, since we won't have any idea how to create a thread. * configure.in (LIBS): use glib-config ... gthread so we always build a thread-compatible library. * gtk/gtkaccellabel.c gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c gtk/gtkcontainer.c gtk/gtkentry.c gtk/gtklist.c gtk/gtkmenuitem.c gtk/gtknotebook.c gtk/gtkrange.c gtk/gtkselection.c gtk/gtkspinbutton.c gtk/gtktext.c gtk/gtktooltips.c gtk/gtkwidget.c: Add GTK_THREADS_ENTER/LEAVE pairs around timeouts and idles to account for the fact that they are no longer called within the GTK+ lock. * gtk/gtkprivate.h: Added definitions for locking the main GTK+ mutex. * gtk/gtkmain.c: Re-implement the main loop in terms of the GLib main loop. * gdk/gdk.h gdk/gdkthreads.c gdk/Makefile.am: Removed threading functionality, as it seems better to subsume GDK within the GTK+ lock than vice-versa. * gdk/gdkevents.c: New file, containing event handling bits from gdk.c. * gdk/gdkevents.c: Implement event source for GDK events. * configure.in gdk/gdkevents.c: Removed attempts to subtract base_id, which were already non-functional.
* Append locale-specific suffixes to default rc file names, and look theseOwen Taylor1998-12-143-10/+91
| | | | | | | | | | | | | | | | | Mon Dec 14 16:10:05 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkrc.c (gtk_rc_init): Append locale-specific suffixes to default rc file names, and look these up in addition to the base filename, to facilitate having the correct fontset per-locale. move $(sysconfdir)/gtkrc to $(sysconfdir)/gtk/gtkrc * gtk/gtkitemfactory.[ch] (gtk_item_factory_set_translate_func): New function to set a function to translate menu paths. * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Free results of g_strsplit().
* Only call gtk_spin_button_update if the spinbutton is editable.Stefan Jeske1998-12-141-4/+7
| | | | | | | Mon Dec 14 20:04:31 1998 Stefan Jeske <stefan@gtk.org> * gtk/gtkspinbutton.c: Only call gtk_spin_button_update if the spinbutton is editable.
* Added gettext-10.35Owen Taylor1998-12-145-43/+80
| | | | | | | | | | | | | | | | | | | | | | | Mon Dec 14 12:24:13 1998 Owen Taylor <otaylor@redhat.com> * HACKING: Added gettext-10.35 * autogen.sh: Run gettextize. Wed Dec 9 16:29:06 1998 Owen Taylor <otaylor@redhat.com> Applied gtk-egger-981010-[12] [ Daniel.Egger@t-online.de (Daniel Egger) ] * gtk/gtkintl.h: New file - defines for localization. * gtk/gtkfilesel.c gtk/gtkinputdialog.c: Mark strings for internationalization. * gtk/gtkmain.c: call bindtextdomain * po/ - directory for translations. Initially includes German translation.
* made GtkWidget::grab_focus a RUN_LAST and RUN_ACTION signal. moved stuffTim Janik1998-12-141-4/+14
| | | | | | | | | Mon Dec 14 02:42:11 1998 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c: made GtkWidget::grab_focus a RUN_LAST and RUN_ACTION signal. moved stuff from gtk_widget_grab_focus() into gtk_widget_real_grab_focus() so a signal is always emitted if the focus is grabbed on a widget.
* fixed submenu popup timeouts, we decide whether or not to delay theTim Janik1998-12-141-8/+25
| | | | | | | | | Mon Dec 14 02:13:01 1998 Tim Janik <timj@gtk.org> * gtk/gtkmenuitem.c: fixed submenu popup timeouts, we decide whether or not to delay the submenu popup from a menu item deselection time stamp. the code looks even more hackish than before, but in practice "feels" very well.
* Added a "grab_focus" signal for widgets. When the signal is emitted, theFederico Mena Quintero1998-12-142-0/+12
| | | | | | | | | | | | | 1998-12-13 Federico Mena Quintero <federico@nuclecu.unam.mx> * gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus" signal for widgets. When the signal is emitted, the widget will grab the focus. This is needed to let the user press an accelerator key in a dialog box and have the corresponding widget be focused. * gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus" signal. The default handler is simply gtk_widget_grab_focus().
* made GtkMenuItem::activate a GTK_RUN_ACTION signal.Tim Janik1998-12-133-2/+30
| | | | | | | | | | Sat Dec 12 19:11:35 1998 Tim Janik <timj@gtk.org> * gtk/gtkmenuitem.c: made GtkMenuItem::activate a GTK_RUN_ACTION signal. * gtk/gtkbutton.c: made GtkButton::clicked a GTK_RUN_ACTION signal. * gtk/gtkfeatures.h.in: define GTK_HAVE_FEATURES_1_1_8.
* Mark child->window as destroyed so we don't destroy it again.Owen Taylor1998-12-122-1/+2
| | | | | | | | Sat Dec 12 17:46:55 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtklayout.c (gtk_layout_unrealize): Mark child->window as destroyed so we don't destroy it again.
* Added "style_set" handlers.Owen Taylor1998-12-112-0/+25
| | | | | | | | Fri Dec 11 08:59:12 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtklistitem.c (gtk_list_item_style_set): * gtk/gtklist.c (gtk_list_style_set): Added "style_set" handlers.
* Add in a "style_set" handler so that the background of the clist changesOwen Taylor1998-12-111-0/+7
| | | | | | | | Fri Dec 11 05:49:30 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set" handler so that the background of the clist changes with the theme.
* Released GTK+ 1.1.7GTK_1_1_7CST 1998 Shawn T. Amundson1998-12-111-0/+4
| | | | | | | | | | | | | | Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org> * Released GTK+ 1.1.7 * INSTALL: NEWS: README: configure.in: gtk+.spec: gtk/gtkfeatures.h.in: docs/gtk-config.1: Version to 1.1.7
* avoid void pointer mathManish Singh1998-12-117-7/+7
| | | | | | | | | | | | | | | * gtk/gtkclist.c: avoid void pointer math * gtk/gtkhscale.c * gtk/gtkhscrollbar.c * gtk/gtkvscale.c * gtk/gtkvscrollbar.c: removed trailing , from enums * gtk/gtksignal.c: can't use enums as a bitfield type, use guint * gtk/testgtk.c: removed C++ comment added by owenpoo -Yosh
* Added gtk_drag_source_unset()Owen Taylor1998-12-112-0/+26
| | | | | | Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()
* Use gdk_window_get_origin() instead of gdk_window_get_position, becauseOwen Taylor1998-12-111-1/+1
| | | | | | | | | | Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use gdk_window_get_origin() instead of gdk_window_get_position, because get_position is unreliable for plugs. This is a bad hack, maybe we need GDK_WINDOW_PLUG?
* use g_snprintf, eliminate need for string.h include string.h, for strlenJeff Garzik1998-12-102-2/+2
| | | | | * gtk/testdnd.c: use g_snprintf, eliminate need for string.h * gtk/testrgb.c: include string.h, for strlen
* Add in missing 'flags' field to target list.Owen Taylor1998-12-091-3/+3
| | | | | | | | | | Wed Dec 9 12:23:30 1998 Owen Taylor <otaylor@redhat.com> * gtk/testselection.c (main): Add in missing 'flags' field to target list. * gdk/gdkproperty.c (gdk_atom_intern): Actually add the atoms to the local cache.
* put text after #endif in commentManish Singh1998-12-091-0/+1
| | | | | | | | | | * gdk/gdkprivate.h: put text after #endif in comment * gdk/gdktypes.h: change whitespace in enum to shut up makeenums.pl * gtk/testdnd.c: #include <string.h> -Yosh
* Destroy widgets _after_ propagating unrealize signals through the widgetOwen Taylor1998-12-0912-712/+831
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Dec 7 10:27:09 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize signals through the widget heirarchy. This is unpleasant, as it causes more X traffic, but is necessary, because we have to clean up our Input Contexts before destroying the X windows. (from matsu-981109-0.patch) Mon Dec 7 10:18:18 1998 Owen Taylor <otaylor@redhat.com> Applied gtk-a-higuti-981202-0 : [ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ] * gdk/gdk.h gdk/gdk.c (gdk_mbstowcs): New function. Nearly equals to mbstowcs, but implemented by a combination of Xlib functions, so it works even with X_LOCALE. (gdk_wcstombs): New function. (g_mbtowc): Removed. No longer needed. * gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c: Added _wc() variants to gdk_text_width(), gdk_char_width(), gdk_draw_text(), * gdk/gdki18n.h (mblen, mbtowc, wctomb, mbstowcs, wcstombs, wcslen, wcscpy, wcsncpy): Removed. No longer needed. (iswalnum): Removed. (gdk_iswalnum): New macro. (gdk_iswspace): New macro. * gdk/gdktype.h (GdkWChar): New typedef. * gtk/gtkentry.h, gtk/gtkentry.c There are many changes according to the change of the internal representation of text, from multibyte string to wide characters. * gtk/gtkprivate.h, gtk/gtkmain.c Removed the variable gtk_use_mb and related codes. * gtk/gtkspinbutton.c Some changes according to the change of type of entry->text. * gtk/gtktext.h, gtk/gtktext.c Changed the internal representation of text. We use GdkWchar if a fontset is supplied. If not, we use guchar to save memory.
* Allocate correct amount of memory for strings.Owen Taylor1998-12-091-2/+2
| | | | | | | Wed Dec 9 00:41:41 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate correct amount of memory for strings.
* Released GTK+ 1.1.6GTK_1_1_6CST 1998 Shawn T. Amundson1998-12-094-2/+109
| | | | | | | | | | | | | Tue Dec 8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org> * Released GTK+ 1.1.6 * NEWS: updated * gtk/Makefile.am: gtk/testgtk.c: gtk/gtkrc.h: gtk/gtkrc.c: Read in default files.
* added gtk_type_query() which returns a newly allocated structure holdingTim Janik1998-12-083-7/+41
| | | | | | | | | | Wed Dec 9 00:49:12 1998 Tim Janik <timj@gtk.org> * gtk/gtktypeutils.h: * gtk/gtktypeutils.c: added gtk_type_query() which returns a newly allocated structure holding certain type specific informations. fixed the big bunch of `discards const' warnings with the initialization of enum/flags values.
* Fixed order of arguments to gdk_window_transient_for().Owen Taylor1998-12-081-1/+1
| | | | | | | Tue Dec 8 15:10:17 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkwindow.c (gtk_window_transient_parent_realized): Fixed order of arguments to gdk_window_transient_for().
* Functions to test the toolbar space style.Andrew T. Veliath1998-12-083-20/+148
| | | | | | | | | | | | | | | | | | | | * gtk/testgtk.c: Functions to test the toolbar space style. * gtk/gtktoolbar.c: Add a private GtkToolbarChildSpace subclass of GtkToolbarChild to hold allocation. Set default space style to GTK_TOOLBAR_SPACE_EMPTY, define SPACE_LINE_* for separator fraction defaults. (gtk_toolbar_paint_space_line): New function; paints the separator line, using "toolbar" as the detail. (gtk_toolbar_expose): (gtk_toolbar_draw): Handle CHILD_SPACE when style is set to SPACE_LINE. (gtk_toolbar_size_allocate): Store space allocations. (gtk_toolbar_insert_element): If we are a space, allocate and initialize a GtkToolbarChildSpace instead of a GtkToolbarChild. (gtk_toolbar_set_space_style): New function. * gtk/gtktoolbar.h: Add GtkToolbarSpaceStyle, with styles of EMPTY and LINE. Add prototype for gtk_toolbar_set_space_style.
* Remove random unnecessary includes of standard headers.Owen Taylor1998-12-071-4/+0
| | | | | | | Mon Dec 7 16:03:55 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkthemes.h: Remove random unnecessary includes of standard headers.
* ""Damon Chaplin1998-12-071-73/+104
|
* Use IPC_RMID _after_ doing XShmAttach. This should work everywhere, andOwen Taylor1998-12-071-2/+4
| | | | | | | | | Mon Dec 7 13:38:06 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdkimage.c (gdk_image_new): Use IPC_RMID _after_ doing XShmAttach. This should work everywhere, and avoid the need for signal handlers or configure checks.
* Removed the unused cursor field in the structure.Federico Mena Quintero1998-12-072-114/+118
| | | | | | | 1998-12-07 Federico Mena Quintero <federico@nuclecu.unam.mx> * gtk/gtkpaned.h (struct _GtkPaned): Removed the unused cursor field in the structure.
* New functions gtk_window_set_transient_for() - set up a "transient for"Owen Taylor1998-12-075-48/+408
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Dec 7 01:29:27 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtkwindow.c: New functions gtk_window_set_transient_for() - set up a "transient for" relationship. gtk_window_set_default_size() - set the initial size of a window distinct from its minimum size. gtk_window_set_geometry_hints() - Allow the user to set minimum, maximum sizes, aspect rations, and gridded geometry, possibly all with respect to a subwidget of the window. These interfaces are still a wee bit experimental. * gdk/gdk.c: Added gdk_window_set_transient_for(), gdk_window_set_geometry_hints(), and gdk_window_set_role(). * gdk/gdktypes.h: Added new types for find-grained specification of WM hints. * gtk/testgtk.c: Various changes to tests to test the above new functions. * gtk/gtkfontsel.c: Squash a few 'const' warnings. * gtk/gtktogglebutton.c (gtk_toggle_button_realize): Restored call to gtk_style_set_background() to prevent egregious flashing to black.
* when marshalling connect_object signals, don't pass the data pointerTim Janik1998-12-071-1/+1
| | | | | | | | Mon Dec 7 03:52:01 1998 Tim Janik <timj@gtk.org> * gtk/gtksignal.c (gtk_handlers_run): when marshalling connect_object signals, don't pass the data pointer twice, but swap it with the object pointer (proposed on Nov 30 1998 on gtk-devel-list).
* reverted marius change to expose the type systems internal type info dataTim Janik1998-12-0710-158/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Dec 7 03:08:39 1998 Tim Janik <timj@gtk.org> * gtk/gtktypeutils.h: * gtk/gtktypeutils.c: reverted marius change to expose the type systems internal type info data to the user. if such functionality is required we should provide wrapped accessors, ala gtk_signal_query(). * gtk/gtksignal.c (gtk_signal_connect_by_type): reverted marius change, since it destroys the possibility to implement automatic marshaller lookups some day, and it also disables third party code's ability to connect to any signal. also the GtkTypeInfo structures are dynamically allocated memory portions, so only the type system is really allowed to access that stuff. Mon Dec 7 01:32:18 1998 Tim Janik <timj@gtk.org> * gtk/gtkfilesel.c (gtk_file_selection_key_press): always intercept the Tab key on the entry. the focus shouldn't get lost even if completion is attempted from an empty entry, since an empty entry string does indeed have a valid completion meaning (complete all). (gtk_file_selection_init): cast the gchar array parameter in calls to gtk_clist_new_with_titles() to quit compiler warnings. (check_dir): the no_stat_dirs struct must not be const, since we do indeed modify its contents. * gtk/testgtk.c (event_watcher): adapted prototype to fit new emission hook semantics. * gtk/gtksignal.h: * gtk/gtksignal.c: changed emission allocation, so we don't use a doubly linked list but link ourselfs (singly linked). changed emission hooks, they get the emision parameters passed as well now and are emitted during the actuall signal emission (after the RUN_FIRST class method, but prior to RUN_FIRST handlers). the existing restrictions do still apply to signal emission hooks, i.e. an emission may not be stopped or restarted from an emission hook. due to possibly huge perfomance impacts, frequent use of emision hooks is also not recommended. (gtk_signal_next_and_invalidate): added an assertments which explicits what the code assumes anyways: a maximum amount of 65535 signals. * gtk/gtkcontainer.h: deprecated gtk_container_foreach_interp(), gtk_container_foreach_full() should be used instead. * gtk/gtkmain.h: deprecated gtk_timeout_add_interp and gtk_idle_add_interp, since we provide _full variants. * gtk/gtksignal.h: deprecated gtk_signal_connect_interp(), we provide gtk_signal_connect_full() for long enough now.
* Allow a NULL marshaller. (gtk_signal_connect_by_type): Allow onlyMarius Vollmer1998-12-063-2/+27
| | | | | | | | | * gtk/gtksignal.c (gtk_signal_newv): Allow a NULL marshaller. (gtk_signal_connect_by_type): Allow only no_marshal handlers to connect to signals with a NULL marshaller. * gtk/gtktypeutils.c (gtk_type_get_info): New. gtk/gtktypeutils.h (gtk_type_get_info): New prototype.
* Grey out arrows if wrap == FALSE and interval borders are reached.Stefan Jeske1998-12-061-14/+27
| | | | | * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): Grey out arrows if wrap == FALSE and interval borders are reached.