summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* Merge from themes-2. See the ChangeLog for a somewhat detailedOwen Taylor1998-11-0674-3911/+6792
| | | | | history of the evolution of the changes involved. Most of this is actually minor painting tweaks.
* gtk/gtkclist.h (struct _GtkCListClass) removed scrollbar_spacing.pre-themes-mergeLars Hamann1998-11-052-7/+0
| | | | | | | Thu Nov 5 18:52:35 1998 Lars Hamann <lars@gtk.org> * gtk/gtkclist.h (struct _GtkCListClass) * gtk/gtkclist.c (gtk_clist_class_init): removed scrollbar_spacing.
* removed vscrollbar, hscrollbar, vscrollbar_policy, hscrollbar_policy.Lars Hamann1998-11-058-563/+538
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Nov 5 16:00:32 1998 Lars Hamann <lars@gtk.org> * gtk/gtkclist.h (struct _GtkCList): removed vscrollbar, hscrollbar, vscrollbar_policy, hscrollbar_policy. added h/vadjustment. * gtk/gtkclist.c (gtk_clist_class_init): added new args types "hadjustment" & "vadjustment" (gtk_clist_set_arg) (gtk_clist_get_arg): new object class set/get_arg functions (gtk_clist_construct): don't create/adjust scrollbars. (gtk_clist_set_hadjustment) (gtk_clist_set_vadjustment): new functions to set h/vadjustments (gtk_clist_get_vadjustment) (gtk_clist_get_hadjustment): new functions to query h/vadjustments (create_scrollbars): removed. (create_adjustments): replacement for create_scrollbars (gtk_clist_new): call gtk_clist_new_with_titles (gtk_clist_new_with_titles): don't warn on titles == NULL (move_horizontal): use CLAMP instead (gtk_clist_set_policy): deprecated method. use gtk_scrolled_window_set_policy instead. (vadjustment_value_changed): use clist->vadj. (adjust_scrollbars): renamed to adjust_adjustments (adjust_adjustments): former adjust_scrollbars (gtk_clist_destroy): unref adjustments (gtk_clist_size_allocate) (gtk_clist_map) (title_focus) (gtk_clist_unmap) (gtk_clist_size_request) (gtk_clist_focus) (gtk_clist_size_allocate) (gtk_clist_forall): don't use scrollbars (gtk_clist_thaw) (real_insert_row) (real_remove_row) (gtk_clist_set_row_height) (real_resize_column): call adjust_adjustments (gtk_clist_moveto): return if clist has no adjustments yet. (gtk_clist_parent_set): new GtkWidget::parent_set function. Autogenerate h/vadjustments if needed. (move_horizontal) (move_vertical): some cleanups * gtk/gtkviewport.c (gtk_viewport_set_arg) (gtk_viewport_new): call only gtk_viewport_set_h/vadjustment and let these functions do the work. (gtk_viewport_set_hadjustment) (gtk_viewport_set_vadjustment): generate a new adjustment if needed * gtk/gtkscrolledwindow.h ((struct _GtkScrolledWindow): use a guint bitfield for h/vscrollbar_policy and h/vscrollbar_visible * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): queue_resize if visibility of scrollbars changes (gtk_scrolled_window_remove): only call container_remove with scrolled_window->viewport automatically if viewport was autogenerated (gtk_scrolled_window_add): add widget as scrolled_window->viewport. auto create a viewport only if widget does not take h/vadjustments. (gtk_scrolled_window_construct): don't generate a viewport automatically. (gtk_scrolled_window_forall): call callback with viewport in any case (gtk_scrolled_window_set_arg): call gtk_container_add in case of ARG_VIEWPORT (gtk_scrolled_window_size_allocate) (gtk_scrolled_window_size_request) (gtk_scrolled_window_map) (gtk_scrolled_window_unmap): check viewport != NULL * gtk/testgtk.c (create_ctree) (export_ctree) (create_clist): use a scrolled_window in conjunction with clists/ctrees * gtk/gtkfilesel.c (gtk_file_selection_init): use a scrolled_window in conjunction with clists * gtk/gtkfontsel.c (gtk_font_selection_init): use a scrolled_window in conjunction with clists
* fix focus_row adjustment (gtk_ctree_remove_node): select focus_row ifLars Hamann1998-11-041-5/+23
| | | | | | | | Wed Nov 4 21:52:57 1998 Lars Hamann <lars@gtk.org> * gtk/gtkctree.c (gtk_ctree_unlink): fix focus_row adjustment (gtk_ctree_remove_node): select focus_row if needed (cell_size_request): only get pixmap size if pixmap != NULL
* added a bunch of checks for widget != NULL and GTK_IS_WIDGET (widget):Tim Janik1998-11-041-3/+54
| | | | | | | Wed Nov 4 04:30:37 1998 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c: added a bunch of checks for widget != NULL and GTK_IS_WIDGET (widget):
* set correct focus_row after a remove_row call.Lars Hamann1998-11-041-24/+19
| | | | | | | Wed Nov 4 02:02:07 1998 Lars Hamann <lars@gtk.org> * gtk/gtkclist.c (real_remove_row) (sync_selection): set correct focus_row after a remove_row call.
* gtk/gtkoptionmenu.c make option menus work when some of the menuitems areGMT 1998 Austin Donnelly1998-11-012-3/+9
| | | | | | | | | Sun Nov 1 21:00:06 GMT 1998 Austin Donnelly <austin@greenend.org.uk> * gtk/gtkoptionmenu.c * gtk/gtkmenushell.c: make option menus work when some of the menuitems are hidden - previously, option menu would popup too high.
* Remove `#pragma }'.Raja R Harinath1998-11-011-1/+0
| | | | | | | | | | | | | * gtk/gtkfeatures.h.in: Remove `#pragma }'. * gdk/gdki18n.h: Update to use new `glib' widechar defines. * configure.in (CFLAGS): Don't use test -z "echo .. | grep". Use case instead. (wchar.h, wctype.h, iswalnum): Duplicate widechar tests from `glib'. (GDK_WLIBS): New variable. Lists extra libraries needed to use widechar functions. * gtk-config.in (--libs): List $GDK_WLIBS, too.
* free undo_un/selection, unselect list_item before disconnect signalLars Hamann1998-10-302-1257/+1458
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Oct 30 20:02:36 1998 Lars Hamann <lars@gtk.org> * gtk/gtklist.c (gtk_list_remove_items_internal): free undo_un/selection, unselect list_item before disconnect signal functions (gtk_list_destroy): removed. gtk_list_shutdown clears the list already (gtk_list_signal_item_select) (gtk_list_signal_item_deselect) (gtk_list_signal_item_toggle) (gtk_list_signal_scroll_horizontal) (gtk_list_signal_toggle_focus_row) (gtk_list_signal_select_all) (gtk_list_signal_unselect_all) (gtk_list_signal_undo_selection) (gtk_list_signal_start_selection) (gtk_list_signal_end_selection) (gtk_list_signal_toggle_add_mode) (gtk_list_signal_scroll_vertical) (gtk_list_signal_extend_selection) (gtk_list_signal_focus_lost): new functions. These functions are signal connected to inserted list_items, to handle key bindings and GtkItem::de/select/toggle signals. * gtk/gtklistitem.c (gtk_list_item_class_init): added missing gtk_object_class_add_signals call. (gtk_list_item_toggle_focus_row) (gtk_list_item_select_all) (gtk_list_item_unselect_all) (gtk_list_item_undo_selection) (gtk_list_item_start_selection) (gtk_list_item_end_selection) (gtk_list_item_extend_selection) (gtk_list_item_scroll_horizontal) (gtk_list_item_scroll_vertical) (gtk_list_item_toggle_add_mode): removed. These functions are handled via connected gtk_list_signal_* functions now
* cause the built sources to be rebuild when possible, even withTim Janik1998-10-301-4/+3
| | | | | | | | Fri Oct 30 05:24:43 1998 Tim Janik <timj@gtk.org> * gtk/Makefile.am: cause the built sources to be rebuild when possible, even with --include-deps: $(libgtk_la_SOURCES): $(BUILT_SOURCES)
* renamed from gtk_object_data_set_destroy to fit the gtkobject.h API.Tim Janik1998-10-304-374/+728
| | | | | | | | | | | | | | | | | | | | | Fri Oct 30 01:56:08 1998 Tim Janik <timj@gtk.org> * gtk/gtkobject.c (gtk_object_remove_no_notify): renamed from gtk_object_data_set_destroy to fit the gtkobject.h API. * applied patch from Damon Chaplin <DAChaplin@email.msn.com>: * gtk/gtkfontsel.h: * gtk/gtkfontsel.c: Added support for an extra 'base' filter which an application can set to restrict the fonts available to the user (e.g. a terminal program only wants the user to be able to select fixed-width fonts). The type of font (bitmap/scalable/scaled bitmap) is now also a part of the filter, so that an application can request that only scalable fonts are shown. There are new functions to set the base & user filters. I've also stopped the up/down key press signals getting to the clists since the font selection widget handles them itself. It acted a bit strangely before.
* support an environment variable GTK_MODULES= which takes a colon speratedTim Janik1998-10-251-55/+85
| | | | | | | | Sun Oct 25 20:27:02 1998 Tim Janik <timj@gtk.org> * gtk/gtkmain.c (gtk_init): support an environment variable GTK_MODULES= which takes a colon sperated list of module names automatically loaded at gtk_init() startup.
* added more g_return_if_fail() statements.Tim Janik1998-10-251-0/+9
| | | | | | Sun Oct 25 08:04:33 1998 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c: added more g_return_if_fail() statements.
* removed. gtk_clist_destroy is sufficientLars Hamann1998-10-221-40/+0
| | | | | | | Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org> * gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy is sufficient
* samll fix for invisible columnsLars Hamann1998-10-221-6/+7
| | | | | | | Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org> * gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible columns
* GtkType and macro fixups set a pattern for the file selection widget toTim Janik1998-10-223-390/+323
| | | | | | | | | | | | | | Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org> * gtk/gtkfilesel.h: GtkType and macro fixups * gtk/gtkfilesel.c (gtk_file_selection_complete): set a pattern for the file selection widget to try a completion on (set the initial filter). Wed Oct 14 14:34:04 1998 Tim Janik <timj@gtk.org> * gtk/gtkmain.c: implement idle functions via GHook. this gives a slight speed improvement and lessens code duplication.
* Always send "drag_leave" to dests without GTK_DEST_DEFAULT_MOTION.Owen Taylor1998-10-203-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Oct 20 14:53:28 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c: Always send "drag_leave" to dests without GTK_DEST_DEFAULT_MOTION. Tue Oct 20 11:55:24 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdk.c (gdk_event_translate): Handle DestroyNotify on destroyed windows so we clear the XID table properly. Finish up restructure of return value handling that was half-done before. Tue Oct 20 12:57:10 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdk.c (gdk_send_clientmessage_to_all): Hunt the window tree more comprehensively, so that we find client windows hidden under non-toplevels. Tue Oct 20 12:43:04 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkselection.c (gtk_selection_data_set): Maintain the null-termintation guarantee, even when data = NULL, length = 0. (Warn on data = NULL, length > 0) Mon Oct 19 16:41:44 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.h (struct _GtkWidgetClass): Add in coordinates into function prototype for drag_data_received.
* Tue, 20 Oct 1998 11:33:10 +0200 Paolo Molaro <lupus@debian.org>Paolo Molaro1998-10-202-4/+4
| | | | | | Tue, 20 Oct 1998 11:33:10 +0200 Paolo Molaro <lupus@debian.org> * gtk/gtkdnd.h,gtk/gtkdnd.c: delete is a reserved word in c++.
* rearranged some functions (gtk_clist_set_column_auto_resize): newLars Hamann1998-10-194-2478/+3230
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Oct 19 23:44:41 1998 Lars Hamann <lars@gtk.org> * gtk/gtkclist.c: rearranged some functions (gtk_clist_set_column_auto_resize): new function. toggle auto_resize flag of column (gtk_clist_set_column_resizeable): if resizeable disable auto_resize (gtk_clist_set_border): deprecated function, use gtk_clist_set_shadow_type instead. (gtk_clist_set_shadow_type): replacement for gtk_clist_set_border (adjust_scrollbars): some cleanups (select_row) (unselect_row): removed. replaced by equivalent gtk_signal_emit calls (add_style_data): removed, use gtk_clist_style_set instead (gtk_clist_style_set): fill in size data, after style was set. (set_cell_contents) (gtk_clist_set_shift) (gtk_clist_set_row_style) (gtk_clist_set_cell_style): auto_resize columns if needed (column_auto_resize): resize column if needed for auto_resize (real_clear): disable auto_resize while list destroy (resize_column): removed * gtk/gtkctree.c : (gtk_ctree_remove_node) (gtk_ctree_set_line_style) (gtk_ctree_set_expander_style) (gtk_ctree_node_set_row_style) (gtk_ctree_node_set_cell_style) (set_cell_contents) (gtk_ctree_node_set_shift) (gtk_ctree_set_spacing) (real_tree_move) (gtk_ctree_set_indent) (gtk_ctree_insert_node) (real_tree_collapse) (real_tree_expand) (column_auto_resize): auto_resize columns if needed (gtk_ctree_collapse_recursive) (gtk_ctree_collapse_to_depth) (real_clear): disable auto_resize while processing the tree * gtk/testgtk.c (create_clist) (create_ctree): set auto_resize for one column
* Fixed typo - look for right atom on transfer failures.merge-to-themes-2-6Owen Taylor1998-10-191-1/+1
| | | | | | | Mon Oct 19 08:31:36 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_selection_received): Fixed typo - look for right atom on transfer failures.
* add testdnd to .cvsignoreChristopher Blizzard1998-10-191-0/+1
|
* Change signal for drag_data_get to match the use that was being made of itOwen Taylor1998-10-193-2/+6
| | | | | | | | Sun Oct 18 20:52:22 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtkwidget.c gtkmarshal.list: Change signal for drag_data_get to match the use that was being made of it everywhere else...
* New test program for new DND. (Old DND tests in testgtk still need to beOwen Taylor1998-10-181-0/+622
| | | | | * gtk/testdnd.c: New test program for new DND. (Old DND tests in testgtk still need to be converted.)
* Missed two files.Owen Taylor1998-10-182-0/+182
|
* Added a modular client-message-filter mechanism, that is used for the DNDOwen Taylor1998-10-1820-550/+3259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Oct 18 18:16:39 1998 Owen Taylor <otaylor@gtk.org> * gdk/gdk.c gdkprivate.h: Added a modular client-message-filter mechanism, that is used for the DND messages. Removed all the old DND code. * gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to get the visual of a given colormap. * gtk/gtkcolorsel.c: Conversion to new DND, drag a color-swatch. * gdk/gdk.h gdk/gdkdnd.c: The low-level X oriented portions of drag and drop protocols. Sending and receiving client messages, and navigating window trees. * gdk/gdkimage.c: added a gdk_flush() when destroying SHM images to hopefully make it more likely that X will gracefully handle the segment being destroyed. * gdk/gdkprivate.h gtk/gtkdebug.h: Add new DND debugging flags. * gtk/gtkeditable.[ch]: Updates for the selection handling changes. * gtk/gtkselection.[ch]: Added GtkTargetList, a refcounted data structure for keeping track of lists of GdkAtom + information. Removed selection_handler_add in favor of a "drag_data_get" signal. * gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop dependent) parts of the DND protocols, display of drag icons, drag-under highlighting, and the "default handlers". * gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen windows that are used for reliable pointer grabs and selection handling in the DND code. * gtk/testdnd.c: New test program for new DND. (Old DND tests in testgtk still need to be converted.) * gtk/testselection.c: Use the new selection API. * docs/dnd_internals: Start at describing how all the new code works inside. * docs/Changes-1.2.txt: New file describing source-incompatible changes in GTK+-1.2. Sat Oct 17 22:50:34 1998 Owen Taylor <otaylor@gtk.org> * gdk/gdkwindow.c (gdk_window_remove_filter): Free the right list node. * gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent to the XID table so we can receive events on it. Wed Oct 14 12:57:40 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function to get the timestamp from a generic event. Fri Oct 9 13:16:04 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_widget_add_events): Added function that safely adds additional events to a widget's event mask, even if the widget has previously been realized. (We can do this, but not remove events from the event mask). Fri Oct 2 17:35:35 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdkproperty.c (gdk_property_get): Allow type == 0, for AnyPropertyType. Fri Oct 2 10:32:21 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdkproperty.c (gdk_atom_intern): Add client-local hashing. Thu Sep 24 20:33:54 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdk.c (gdk_event_send_clientmessage_toall): serial isn't a timestamp. Thu Sep 17 14:23:03 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdk.c (gdk_event_translate): Removed printing of unknown window lookup warnings. (Made it a GDK_NOTE) - they happen in many circumstances.
* new function to toggle line wrapping like gtk_text_set_word_wrap ()Martin Baulig1998-10-182-0/+18
| | | | | | | 1998-10-18 Martin Baulig <martin@home-of-linux.org> * gtk/gtktext.c (gtk_text_set_line_wrap): new function to toggle line wrapping like gtk_text_set_word_wrap () toggles word wrapping.
* change a few cell styles of inserted row (change_style): change style ofLars Hamann1998-10-165-1665/+2051
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Oct 16 15:59:02 1998 Lars Hamann <lars@gtk.org> * gtk/testgtk.c (insert_row_clist) (create_clist): change a few cell styles of inserted row (change_style): change style of focus_row * gtk/gtkclist.c (gtk_clist_get_row_style) (gtk_clist_set_row_style) (gtk_clist_get_cell_style) (gtk_clist_set_cell_style): new functions to set/get row/cell styles. (gtk_clist_realize): attach row and cell style, allocate row colors. (gtk_clist_unrealize): detach row and cell styles. (get_cell_style): new function. get correct cell style. (draw_cell_pixmap): new function. (draw_row): draw cells with row or cell styles. (row_new): set cell and row styles to NULL. (row_delete): detach & unref cell and row styles. * gtk/gtkctree.c (ctree_detach_styles) (ctree_attach_styles): new functions to attach/detach styles and allocate colors. (gtk_ctree_realize) (gtk_ctree_unrealize): attach/detach cell and row styles of invisible nodes. (draw_cell_pixmap): new function. (get_cell_style): new function. get correct cell style. (gtk_ctree_draw_expander): new function. draw tree expander. (gtk_ctree_draw_lines): new function.draw tree lines. (draw_row): draw cells with row or cell styles. (row_new): set cell and row styles to NULL. (row_delete): detach & unref cell and row styles. (gtk_ctree_node_get_row_style) (gtk_ctree_node_set_row_style) (gtk_ctree_node_get_cell_style) (gtk_ctree_node_set_cell_style): Analogons of GtkCList functions (gtk_ctree_set_spacing): new function. set spacing between tree expander and cell contents (gtk_ctree_set_expander_style): new function. set expander style of ctree. (ctree_is_hot_spot): few changes due to draw_row modifications.
* Wed, 14 Oct 1998 10:17:13 +0200 Paolo Molaro <lupus@debian.org>Paolo Molaro1998-10-141-1/+4
| | | | | * gtk/gtkcombo.c: try completion on MOD1-TAB. Handle case when the combo->list is empty.
* fixed a commentTim Janik1998-10-121-1/+4
|
* only unref those handlers that have not yet been disconnected (finallyTim Janik1998-10-122-6/+8
| | | | | | | | | | | | | Mon Oct 12 07:51:34 1998 Tim Janik <timj@gtk.org> * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those handlers that have not yet been disconnected (finally managed to trigger the gtk_signal_handler_unref() paranoid warning). Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y, width and height which is -1 and not -2.
* take the left, right, top and bottom attach arguments as mandatory andTim Janik1998-10-101-12/+26
| | | | | | | | | Sat Oct 10 03:37:50 1998 Tim Janik <timj@gtk.org> * gtk/gtktable.c (gtk_table_set_child_arg): take the left, right, top and bottom attach arguments as mandatory and readjust the table size and opposing edge accordingly if required. this way the order in which the arguments are set doesn't matter.
* Fixed warning message to print out parent class name correctly.Owen Taylor1998-10-081-1/+1
| | | | | | | Thu Oct 8 15:53:59 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtktypeutils.c (gtk_type_class_init): Fixed warning message to print out parent class name correctly.
* removed functions gtk_object_set_data_destroy andTim Janik1998-10-082-13/+9
| | | | | | | | | | | | | Thu Oct 8 07:07:10 1998 Tim Janik <timj@gtk.org> * gtk/gtkobject.h: * gtk/gtkobject.c: removed functions gtk_object_set_data_destroy and gtk_object_set_data_destroy_by_id. added functions gtk_object_remove_no_notify and gtk_object_remove_no_notify_by_id which will remove a certain data portion without invokation of its destroy notifier, this should only be used in very controled circumstances.
* added size_allocate_title_buttons call (gtk_clist_realize): changedLars Hamann1998-10-071-0/+8
| | | | | | | | Wed Oct 7 23:59:37 1998 Lars Hamann <lars@gtk.org> * gtk/gtkclist.c (gtk_clist_set_column_resizeable): added size_allocate_title_buttons call (gtk_clist_realize): changed initial column.window position
* removed xor_gc, use clists xor_gc instead removedLars Hamann1998-10-072-52/+19
| | | | | | | | | | | Wed Oct 7 20:27:28 1998 Lars Hamann <lars@gtk.org> * gtk/gtkctree.h (struct _GtkCTree): removed xor_gc, use clists xor_gc instead * gtk/gtkctree.c (create_xor_gc): removed (gtk_ctree_button_press): set correct line_attributes for clist->xor_gc on drag start (gtk_ctree_button_release): reset clist->xor_gc
* removed all occourances of #pragma } and #pragma { which were in place toTim Janik1998-10-0765-69/+1
| | | | | | | | | | | Wed Oct 7 05:15:36 1998 Tim Janik <timj@gtk.org> * gtk/gtk*.h: * gdk/gdk.h: removed all occourances of #pragma } and #pragma { which were in place to fixup emacs' cc-mode indentation. putting (c-set-offset 'inextern-lang 0) into ~/.emacs is the proper way to achive this and doesn't produce problems for stupid pragma-related compiler bugs. ;)
* new signal GtkCList::resize_column. don't draw invisible columnsLars Hamann1998-10-074-392/+659
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Oct 7 00:59:46 1998 Lars Hamann <lars@gtk.org> * gtk/gtkclist.h: new signal GtkCList::resize_column. * gtk/gtkclist.c (draw_row): don't draw invisible columns (size_allocate_title_buttons) (size_allocate_columns): skip invisible columns (new_column_width): take min/max_width into account (gtk_clist_button_release) (gtk_clist_motion): changes due to changed new_column_width function (LIST_WIDTH): changed define to inline function. (real_resize_column): class function for resize_column signal (gtk_clist_motion): fixed autoscrolling for column resizes (gtk_clist_set_column_visibility): don't hide last visible column, changed visible arg to gboolean (gtk_clist_set_column_min_width)(gtk_clist_set_column_max_width): new functions : set min/max width of a column (gtk_clist_set_column_resizeable): new function : enable/disable column resize operations by mouse * gtk/gtkctree.c (draw_row): don't draw invisible columns (ctree_is_hot_spot): return FALSE if tree_column is invisible (draw_xor_line) (draw_xor_rect): draw full rectangle/line if tree_column is invisible (gtk_ctree_find_all_by_row_data) (gtk_ctree_find_all_by_row_data_custom): new function from Ronan Bourlier <ronan@radioss.com>. Returns a GList of all GtkCTreeNodes with row->data == data.
* use g_free to free g_malloced memory (Martin PoolTim Janik1998-10-061-3/+3
| | | | | | | Tue Oct 6 14:05:00 1998 Tim Janik <timj@gtk.org> * gtk/testgtk.c (cb_tree_destroy_event): use g_free to free g_malloced memory (Martin Pool <mbp@wistful.humbug.org.au>).
* Fixed an alpha bug.Raph Levien1998-10-051-0/+2
|
* gtk/gtkcalendar.c: More changes: - The day with focus is now seperatedCDT 1998 Shawn T. Amundson1998-10-052-84/+134
| | | | | | | | | | | | | Sun Oct 4 22:47:22 CDT 1998 Shawn T. Amundson <amundson@gtk.org> * gtk/gtkcalendar.h: gtk/gtkcalendar.c: More changes: - The day with focus is now seperated from the day selected - The day with focus has the xor's line around it - The selected day is now standard selected style - The week names and week numbers are now also drawn with selected style - Space now selects the day which has focus
* gtk/gtkcalendar.c: Some significant changes, including: - No longer drawCDT 1998 Shawn T. Amundson1998-10-042-414/+510
| | | | | | | | | | | | | | Sun Oct 4 17:55:52 CDT 1998 Shawn T. Amundson <amundson@gtk.org> * gtk/gtkcalendar.h: gtk/gtkcalendar.c: Some significant changes, including: - No longer draw focus around entire widget, only around the day which has focus - Draw relief around entire widget like originally planned - Show header and day names by default - Move data private to the widget out of GtkCalendar struct and only point to it with a gpointer - Remove some old unused variables from GtkCalendar struct
* Added `visible'.GTK_1_1_2_MARTINMartin Baulig1998-10-042-7/+52
| | | | | | | | | | | 1998-10-01 Martin Baulig <martin@home-of-linux.org> * gtk/gtkclist.h (GtkCListColumn): Added `visible'. * gtk/gtkclist.c (gtk_clist_set_column_visibility): New function. Makes it possible to individually show and hide columns. (size_allocate_columns): Adapted to keep track of hidden columns. (size_allocate_title_buttons): Likewise.
* for unknown foreign fundamental types, collect an argument of the typeTim Janik1998-10-037-21/+94
| | | | | | | | | | | | | | | | | | | | | | | | | Sat Oct 3 17:54:48 1998 Tim Janik <timj@gtk.org> * gtk/gtkargcollector.c (GTK_ARG_COLLECT_VALUE): for unknown foreign fundamental types, collect an argument of the type returned from gtk_type_get_varargs_type(). removed the first macro argument which was just the same as the fundamental type of the *arg passed to the macro. * gtk/gtkarg.c (gtk_args_collect): * gtk/gtksignal.c (gtk_signal_collect_params): changed callers. * gtk/gtktypeutils.h: * gtk/gtktypeutils.c: new functions gtk_type_set_varargs_type() and gtk_type_get_varargs_type() to set and query the varargs collect type used for a fundamental type, registered outside of Gtk. * gtk/gtkmisc.c (gtk_misc_class_init): changed object arguments GtkMisc::xalign and GtkMisc::yalign from GTK_TYPE_DOUBLE to GTK_TYPE_FLOAT. * gtk/gtkframe.c (gtk_frame_class_init): changed object arguments GtkFrame::label_xalign and GtkFrame::label_yalign from GTK_TYPE_DOUBLE to GTK_TYPE_FLOAT.
* fixes for assignment errors with GTK_CTREE_NODE_NEXT/PREVLars Hamann1998-10-021-57/+80
| | | | | | | | | | | Sat Oct 3 01:25:24 1998 Lars Hamann <lars@gtk.org> * gtk/gtkctree.c (gtk_ctree_insert_gnode) (real_tree_collapse) (gtk_ctree_link) (gtk_ctree_unlink) (real_tree_expand): fixes for assignment errors with GTK_CTREE_NODE_NEXT/PREV (real_tree_expand) (real_tree_collapse): don't expand/collapse a leaf
* make sure we don't segfault when looking up a non-existant value nameTim Janik1998-10-021-8/+9
| | | | | | | | Fri Oct 2 16:10:36 1998 Tim Janik <timj@gtk.org> * gtk/gtktypeutils.c (gtk_type_enum_find_value): make sure we don't segfault when looking up a non-existant value name (reported by Pablo <pcj+gtk@primenet.com>).
* new function. (gtk_clist_insert): added g_return_val_if_fail() statements.Tim Janik1998-10-014-595/+667
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Oct 1 10:40:20 1998 Tim Janik <timj@gtk.org> * gtk/gtkclist.h (gtk_clist_prepend): * gtk/gtkclist.c (gtk_clist_prepend): new function. (gtk_clist_insert): added g_return_val_if_fail() statements. accept a row parameter < 0 or > clist->rows to indicate append mode. (real_clear): first clean up all internal pointers and lists (e.g. clist->row_list or clist->rows), then delete the distinct rows. this is required because of destroy notifiers, we need to have all internal structures updated and be reentrant. * gtk/gtkcalendar.h: * gtk/gtkcalendar.c: removed the `gtk_calendar_' prefix from the GtkCalendarClass signal methods. GtkType and macro fixups, put `void' into () prototypes, avoid C++ style comments, indentation fixes, fixed some g_return_if_fail() statements. (gtk_calendar_paint_header): (gtk_calendar_paint_day_names): (gtk_calendar_paint_week_numbers): (gtk_calendar_paint_main): made these static functions. (gtk_calendar_select_month): (gtk_calendar_select_day): (gtk_calendar_mark_day): (gtk_calendar_unmark_day): (gtk_calendar_get_date): signedness corrections, use guints rather than gints. (gtk_calendar_size_request): removed unused variables.
* list all widgets in the ->widgets_by_action list that have a callbackTim Janik1998-09-301-1/+1
| | | | | | | | Wed Sep 30 13:11:09 1998 Tim Janik <timj@gtk.org> * gtk/gtkitemfactory.c (gtk_item_factory_add_item): list all widgets in the ->widgets_by_action list that have a callback defined (not only those with a callback_action!=0).
* gtk/gtkcalendar.c: examples/calendar/gcalendar.c: remove HAVE_FEATURESCDT 1998 Shawn T. Amundson1998-09-281-15/+0
| | | | | | | | Sun Sep 27 22:02:48 CDT 1998 Shawn T. Amundson <amundson@gtk.org> * gtk/gtkcalendar.h: gtk/gtkcalendar.c: examples/calendar/gcalendar.c: remove HAVE_FEATURES stuff
* gtk/gtkcalendar.c: examples/calendar: Added gtkcalendar widget and demoCDT 1998 Shawn T. Amundson1998-09-274-0/+2717
| | | | | | | | Sun Sep 27 02:18:06 CDT 1998 Shawn T. Amundson <amundson@gtk.org> * gtk/gtkcalendar.h: gtk/gtkcalendar.c: examples/calendar: Added gtkcalendar widget and demo
* adde g_return_if_fail() statements.Tim Janik1998-09-261-0/+12
| | | | | | | | | Sat Sep 26 06:15:34 1998 Tim Janik <timj@gtk.org> * gtk/gtkclist.c (gtk_clist_sort): (gtk_clist_clear): (gtk_clist_unselect_all): (gtk_clist_select_all): adde g_return_if_fail() statements.