summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* for NO_WINDOW widgets, add their allocation.y to the position of theGeorge Lebl1999-01-178-0/+44
| | | | | | | | Sat Jan 16 19:42:48 1999 George Lebl <jirka@5z.com> * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y to the position of the tooltip. This fixes tooltip positioning problems with some widgets such as a checkbox.
* Updated.Tomas Ogren1999-01-172-45/+34
| | | | | | 1999-01-17 Tomas Ogren <stric@ing.umu.se> * sv.po: Updated.
* updatedNam SungHyun1999-01-171-11/+10
|
* Sat, 16 Jan 1999 23:32:33 +0100 [Vincent]Vincent Renardias1999-01-161-11/+9
| | | | * fr.po: Updated.
* check for child widget being NULLStuart Parmenter1999-01-168-0/+30
| | | | | | Sat Jan 16 14:01:53 1999 Stuart Parmenter <pavlov@gtk.org> * gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL
* fixed double click bug.Lars Hamann1999-01-168-6/+28
| | | | | | Sat Jan 16 05:02:22 1999 Lars Hamann <lars@gtk.org> * gtk/gtkclist.c (gtk_clist_button_press): fixed double click bug.
* Mention libtool 1.2dManish Singh1999-01-161-1/+1
| | | | -Yosh
* Updated translation.Kjartan Maraas1999-01-151-10/+9
| | | | | | 1999-01-16 Kjartan Maraas <kmaraas@fib.hl.no> * Updated translation.
* define GTK_DISABLE_COMPAT_H for compilation of gtk code.Tim Janik1999-01-1518-2256/+2503
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Jan 15 19:16:42 1999 Tim Janik <timj@gtk.org> * gtk/Makefile.am: define GTK_DISABLE_COMPAT_H for compilation of gtk code. * gtk/gtkrc.c (gtk_rc_style_unref): added an assertment. * gtk/gtkcompat.h: * gtk/gtklabel.h: don't provide compatibility defines if GTK_DISABLE_COMPAT_H is defined. * gtk/gtkstyle.h: * gtk/gtkstyle.c: coding style, indentation and alignment fixups. (gtk_draw_string): (gtk_paint_string): (gtk_draw_polygon): (gtk_style_set_background): fixed assertments. (gtk_default_draw_ramp): (gtk_default_draw_cross): (gtk_default_draw_oval): issue warnings since these functions aren't yet implemented. * gdk/gdkwindow.c: (gdk_window_hide): only unmap window if already mapped. (gdk_window_show): only map window if !mapped. (gdk_window_internal_destroy): destroyed windows can't be mapped. * gtk/gtkwidget.c (gtk_widget_event): don't ignore expose events just because a resize is queued on a widget, we rely on the expose events now.
* nparams for selection_get should be 3, not 2. [ From Damon ChaplinOwen Taylor1999-01-1535-99/+902
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Jan 15 10:22:21 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c (gtk_widget_class_init): nparams for selection_get should be 3, not 2. [ From Damon Chaplin <damon@karuna.freeserve.co.uk> ] * gtk/gtkeventbox.c (gtk_event_box_paint): Add a paint routine so queued redraws work inside event boxes. Thu Jan 14 17:47:37 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Only redraw character under cursor when not displaying highlighted selection. * gdk/gdkrgb.c (gdk_rgb_init): Add in a cast to gpointer to make IRIX cc happy. Thu Jan 14 12:29:50 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcheckbutton.c (gtk_check_button_draw): Restructure the drawing code to remove a bit of duplication - and to remove a call to gtk_widget_draw_focus() that queues a redraw when an expose occurs. * gtk/gtklabel.c (gtk_label_expose): Fix up handling of ypadding. * gtk/gtknotebook.c (gtk_notebook_draw): If we redraw the whole widget, also redraw the corresponding areas of the child widget. (have_visible_child still has some problems) * gdk/gdkpixmap.c: Change some g_new's to g_new0 so that fields unused for pixmaps get initialzized sanely. * gdk/gdk.h gdk/gdkwindow.c gdk/gdkprivate.h: Add new calls gdk_window_is_visible() and gdk_window_is_viewable() and a mapped flag to the window private structure. * gtk/gtkbin.c gtk/gtkclist.c gtk/gtkfixed.c gtk/gtkitem.c gtk/gtklayout.c gtk/gtklist.c gtk/gtkmenushell.c gtk/gtknotebook.c gtk/gtkpaned.c gtk/gtktree.c gtk/gtktreeitem.c gtk/gtkviewport.c: Map windows after mapping children. * gtk/gtkwidget.c (gtk_widget_clip_rect): Handle rectangles completely clipped away correctly. * gtk/gtkwidget.c (gtk_widget_idle_draw): Don't call gtk_widget_draw if width or height is 0. * gtk/gtkwidget.c (gtk_widget_idle_draw): Don't rely on GTK_REDRAW_PENDING after we've cleared it. (This was causing draw-combining to not happen at all). * gtk/gtkbin.c gtk/gtkscale.c: Remove uneccessary calls to gtk_widget_queue_draw() when mapping.
* Make MOD1-drag also do action ask.Owen Taylor1999-01-151-1/+4
| | | | | | | | | | | | | | | Thu Jan 14 11:29:53 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_get_event_action): Make MOD1-drag also do action ask. * gtk/gtkdnd.c (gtk_drag_button_release_cb): Send the button-release event we simulate to get grabs released, with a window of GDK_ROOT_PARENT instead of the actual widget. This is a bad hack in some sense, but seems to work nicely. (It's sort of like what you would if you grabbed on button press, then the user released outside of the widget.)
* Do all event processing in dispatch() instead of prepare() and check().Owen Taylor1999-01-152-10/+10
| | | | | | | Thu Jan 14 19:19:51 1999 Owen Taylor <otaylor@redhat.com> * gdk/gdkevents.c: Do all event processing in dispatch() instead of prepare() and check().
* Change copy_area => !set_bg. Use tile instead of gdk_window_copy_area whenOwen Taylor1999-01-152-51/+43
| | | | | | | | | | | | | | Thu Jan 14 20:29:16 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.[ch] (gtk_style_apply_default_background): Change copy_area => !set_bg. Use tile instead of gdk_window_copy_area when drawing without !set_bg. This does mess up timj's neat check-button example, but is consistent with how we interpret background pixmaps everywhere else in the default scheme. Restructure code for clarity.
* gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c gtk/gtkframe.cOwen Taylor1999-01-1425-61/+138
| | | | | | | | | | | | | Wed Jan 13 22:34:29 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c gtk/gtkframe.c gtk/gtk[hv]box.c gtk[hv]paned.c gtk/gtklist.c gtkmenu.c gtkmenuitem.c gtkmenubar.c gtknotebook.c gtk/gtkscrolledwindow.c gtk/gtktable.c gtk/gtktree.c gtk/gtktreeeitem.c gtk/gtkviewport.c Fix up comparisons of signed and unsigned ints to avoid assigning negative widths/heigths.
* Unset CATOBJEXT so that the macros and Makefiles correctly handleOwen Taylor1999-01-148-1/+45
| | | | | | | | Wed Jan 13 21:18:41 1999 Owen Taylor <otaylor@redhat.com> * acinclude.m4 (ac_result): Unset CATOBJEXT so that the macros and Makefiles correctly handle disabling NLS when no gettext is found.
* in comparisions with GTK_TYPE_STRING, use the fundamental type to catchTim Janik1999-01-139-2/+74
| | | | | | | | | | | | Wed Jan 13 20:14:32 1999 Tim Janik <timj@gtk.org> * gtk/gtkarg.c (gtk_arg_copy): in comparisions with GTK_TYPE_STRING, use the fundamental type to catch GTK_TYPE_IDENTIFIER as well. * gtk/gtkmenushell.c: (gtk_real_menu_shell_activate_current): (gtk_menu_shell_button_release): asure that we only activate sensitive menu items, reported by Dave Cole <dave@dccs.com.au>.
* updated spanish language filePablo Saratxaga1999-01-131-12/+5
|
* cvs be quietJeff Garzik1999-01-131-1/+2
|
* eliminate queue_clears or queue_draws where we know that expose eventsTim Janik1999-01-1311-11/+109
| | | | | | | | | | | | | | | Wed Jan 13 13:28:00 1999 Tim Janik <timj@gtk.org> * gtk/gtkwidget.c: eliminate queue_clears or queue_draws where we know that expose events will be generated. (gtk_widget_map): only queue_draw for NO_WINDOW widgets. (gtk_widget_unmap): only queue_clear_child for NO_WINDOW widgets. (gtk_widget_size_allocate): we don't need a queue_clear on changing allocations of !NO_WINDOW widgets, we do still need a full redraw for them though. * gtk/gtklabel.c (gtk_label_set_text): check whether the new string actually differs from the original.
* remove autogened filesManish Singh1999-01-132-156/+0
| | | | -Yosh
* Doah. libtool isn't the only thing in here.Manish Singh1999-01-131-0/+332
| | | | -Yosh
* acinclude.m4 ltconfig upgrade to libtool 1.2d (with fixes for irix6 andManish Singh1999-01-1324-802/+1927
| | | | | | | | * acinclude.m4 * ltconfig * ltmain.sh: upgrade to libtool 1.2d (with fixes for irix6 and osf) -Yosh
* add GTK_HAVE_FEATURES_1_1_13 for the toggle button name changesStuart Parmenter1999-01-131-0/+5
|
* Updated, did make update-poTomas Ogren1999-01-132-41/+64
| | | | | | 1999-01-13 Tomas Ogren <stric@ing.umu.se> * sv.po: Updated, did make update-po
* Add a drag_data_received handler for the label.Owen Taylor1999-01-1213-120/+536
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Jan 12 18:30:51 1999 Owen Taylor <otaylor@redhat.com> * gtk/testdnd.c (label_drag_data_received): Add a drag_data_received handler for the label. Tue Jan 12 15:01:50 1999 Owen Taylor <otaylor@redhat.com> * gdk/gdkevents.c: Removed the putback_events queue, since it was causing problems with event ordering - just keep a single queue. If we need it, we can add priorities to events. * gdk/gdkevents.c: Annotate events with flags - we allocate a GdkEventPrivate structure in gdk_event_new() and use these flags to mark an event being translated as "pending" - I.e., not yet ready to be dequeued. So we can put the event on the queue and get the order of the events right. (This solves the double-click problems) * gdk/gdk.h gdk/gdkevents.h: Add gdk_event_peek() to get a copy of the next event on the event queue. * gtk/gtkmain.c (gtk_main_do_event): Use gdk_event_peek() to check the next event without causing event queue reordering.
* Minor fix to handling of misc->[x/y]padOwen Taylor1999-01-128-2/+79
| | | | | | | Tue Jan 12 15:41:20 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtklabel.c (gtk_label_expose): Minor fix to handling of misc->[x/y]pad
* Add back as wrapper function to restore source/binary compatibility.Owen Taylor1999-01-122-1/+26
| | | | | | | | Tue Jan 12 14:31:43 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.[ch] (gtk_style_apply_default_pixmap): Add back as wrapper function to restore source/binary compatibility. grrrr.
* updatesTim Janik1999-01-121-0/+2
|
* reworked the redrawing heuristics somewhat, this fixed a bunch of existingTim Janik1999-01-1223-355/+1007
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Jan 12 13:47:07 1999 Tim Janik <timj@gtk.org> * reworked the redrawing heuristics somewhat, this fixed a bunch of existing redrawing problems and majorly reduces overall redrawing needs during normal operation. basically we now only queue redraws when neccessary and much rely on the draw_area coalescing code in gtkwidget.c to optimize the queued portions. widgets will now upon reallocation only get redrawed if their allocation has changed. upon hide/show only the area allocated by the child will be queued for the parent, this has the side effect that parents which change their appearance in dependance on the numer of visible children have to keep track of their children's visiblity and eventually fully redraw themselves. this is a minor constrain with great benefits in terms of redraw reduction, and only got triggered by the notebook widget. * gtk/gtkwidget.c: (gtk_widget_queue_clear): don't bother if width and height == 0. (gtk_widget_queue_clear_child): new static function to queue a redraw of the area obscured by a child on a parent. (gtk_widget_queue_resize): queue_clear the widget if it is drawable. (gtk_widget_show): queue resize on the widget before showing. (gtk_widget_hide): queue resize on the widget after hiding. (gtk_widget_map): queue_draw the widget after mapping. (gtk_widget_unmap): queue_clear_child the widget. (gtk_widget_size_allocate): queue_clear_child and queue_draw if the widget's allocation changed. (gtk_widget_unparent): queue_clear_child so the parent redraws obscured portions. (gtk_widget_real_show): (gtk_widget_real_hide): (gtk_widget_real_map): (gtk_widget_real_unmap): (gtk_widget_real_size_allocate): don't bother with redraw queueing, descendants that override these functions don't do either and we handle all redrawing/resizing related stuff before or after the signal emission now. * gtk/gtkcontainer.c: (gtk_container_resize_children): don't bother about redrawing anymore since gtk_widget_size_allocate handles that for us now. * gtk/gtknotebook.h: * gtk/gtknotebook.c: added a flag have_visible_child to indicate whether we need to draw non child related portions at all, e.g. shadows etc. (gtk_notebook_draw): if have_visible_child changed, do a full paint instead of updating a small area only. Mon Jan 11 20:44:35 1999 Tim Janik <timj@gtk.org> * gtk/gtkstyle.c: changed gtk_style_apply_default_pixmap to gtk_style_apply_default_background which takes an extra argument copy_area to determine NO_WINDOW widget pixmap copying. changed callers accordingly. * gtk/gtktogglebutton.c: (gtk_toggle_size_allocate): (gtk_toggle_button_expose): (gtk_toggle_button_paint): avoid messing with our parent's window if toggle_button->draw_indicator == TRUE and we are a NO_WINDOW widget. * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): draw the draw_indicator with GTK_STATE_ACTIVE if the toggle button is active. * gtk/check-n.xpm: * gtk/check-y.xpm: * gtk/testgtkrc: set pixmaps for ACTIVE and NORMAL check button bg_pixmaps.
* end drag selections if necessary.Lars Hamann1999-01-1110-5/+122
| | | | | | | | | | | Mon Jan 11 23:52:58 1999 Lars Hamann <lars@gtk.org> * gtk/gtklist.c (gtk_list_signal_drag_begin) (gtk_list_drag_begin): end drag selections if necessary. * gtk/gtkspinbutton.c/h (gtk_spin_button_update): made function public. Manually force synchronization of spin button text and adjustment value.
* eliminated some queue_draws when invoking gtk_widget_set_state, since thatTim Janik1999-01-1121-1216/+1384
| | | | | | | | | | | | | | | | | | | Mon Jan 11 15:23:32 1999 Tim Janik <timj@gtk.org> * gtk/gtktogglebutton.c: eliminated some queue_draws when invoking gtk_widget_set_state, since that cares about redrawing already. some code cleanups. * gtk/gtktogglebutton.[hc]: * gtk/gtkfontsel.c: * gtkgamma.c: s/gtk_toggle_button_set_state/gtk_toggle_button_set_active/ since set_state is already taken by gtkwidget.h. * gtk/gtkcompat.h: #define gtk_toggle_button_set_state gtk_toggle_button_set_active. * gtk/gtkstyle.c: some indentation cleanups.
* Only remove handlers for motion/button_release at drop, removeOwen Taylor1999-01-118-2/+43
| | | | | | | Mon Jan 11 10:45:28 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c: Only remove handlers for motion/button_release at drop, remove "selection_get" handler later.
* removed Paolo Molaro's type creation hooks again, since they 1) don't careTim Janik1999-01-119-64/+56
| | | | | | | | | | Mon Jan 11 13:31:49 1999 Tim Janik <timj@gtk.org> * gtk/gtktypeutils.[hc]: removed Paolo Molaro's type creation hooks again, since they 1) don't care about infinite recursion (likely to achive), 2) we are in feature freeze for 1.2. this definitely deserves a sane implementation in 1.3 though (but without a hook return value, without seq_id hackery and with recursion checks).
* only pass key events to the focus widget if it is sensitive.Tim Janik1999-01-1117-33/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Jan 11 13:18:37 1999 Tim Janik <timj@gtk.org> * gtk/gtkwindow.c: (gtk_window_key_release_event): (gtk_window_key_press_event): only pass key events to the focus widget if it is sensitive. * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): don't popup the submenu if it isn't sensitive. (gtk_menu_item_paint): state_type doesn't need to be reset to GTK_STATE_INSENSITIVE if the widget is insensitive anyways. * gtk/gtkcontainer.c (gtk_container_real_focus): * gtk/gtklist.c (gtk_list_focus): * gtk/gtkmenushell.c (gtk_menu_shell_move_selected): * gtk/gtknotebook.c (gtk_notebook_focus): s/GTK_WIDGET_SENSITIVE/GTK_WIDGET_IS_SENSITIVE/ since a widgets sensitivity is determined through the parent as well, GTK_WIDGET_SENSITIVE is only of interest inside gtkwidget.c, everywhere else GTK_WIDGET_IS_SENSITIVE (widget) needs to be used to check for sensitivity. * gtk/gtkaccelgroup.c (gtk_accel_group_activate): don't activate object if it is an insensitive widget.
* Mon, 11 Jan 1999 08:09:08 +0100 Paolo Molaro <lupus@debian.org>Paolo Molaro1999-01-119-4/+99
| | | | | * gtk/gtktypeutils.[ch]: add gtk_type_{add,remove}_creation_hook(). You can have a notification when a type is created.
* added an assertement.Tim Janik1999-01-118-1/+30
| | | | | | 1999-01-11 Tim Janik <timj@gtk.org> * gtk/gtkmain.c (gtk_propagate_event): added an assertement.
* Fixed cut and paste bug when comparing text property bg colors. [ MattOwen Taylor1999-01-108-2/+51
| | | | | | | | | Sun Jan 10 14:45:37 1999 Owen Taylor <otaylor@gtk.org> * gtk/gtktext.c (text_properties_equal): Fixed cut and paste bug when comparing text property bg colors. [ Matt Aubury <Matt.Aubury@comlab.ox.ac.uk> ]
* if the lookup failed, try to initialize the object class and reattempt theTim Janik1999-01-108-5/+58
| | | | | | | | 1999-01-10 Tim Janik <timj@gtk.org> * gtk/gtksignal.c (gtk_signal_lookup): if the lookup failed, try to initialize the object class and reattempt the lookup, reported by Paolo Molaro <lupus@lettere.unipd.it>.
* added spanish language filePablo Saratxaga1999-01-102-1/+457
|
* Added cs to ALL_LINGUAS.Owen Taylor1999-01-099-5/+74
| | | | | | | | | | | | Sat Jan 9 17:36:20 1999 Owen Taylor <otaylor@redhat.com> * configure.in (ALL_LINGUAS): Added cs to ALL_LINGUAS. Sat Jan 9 17:27:49 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkfilesel.c (gtk_file_selection_populate): Mark another string for internationalization. [ Stanislav Brabec <utx@k332.feld.cvut.cz> ]
* Added Czech translation by Stanislav Brabec <utx@k332.feld.cvut.cz>Owen Taylor1999-01-092-0/+463
| | | | | | | Sat Jan 9 17:35:19 1999 Owen Taylor <otaylor@redhat.com> * cs.po: Added Czech translation by Stanislav Brabec <utx@k332.feld.cvut.cz>
* Set name "gtk-tooltips" on tip window so that a style can be set forOwen Taylor1999-01-098-1/+43
| | | | | | | | Sat Jan 9 14:02:08 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_force_window): Set name "gtk-tooltips" on tip window so that a style can be set for tooltips.
* More strings translated. Not finished yet.Nuno Ferreira1999-01-092-72/+74
| | | | | | 1999-01-09 Nuno Ferreira <nmrf@rnl.ist.utl.pt> * pt.po: More strings translated. Not finished yet.
* Fixed some list-manipulation breakage.Owen Taylor1999-01-0910-4/+120
| | | | | | | | | | | | | | | | | Fri Jan 8 19:00:17 1999 Owen Taylor <otaylor@redhat.com> * gdk/gdkdnd.c (gdk_window_cache_filter): Fixed some list-manipulation breakage. * gdk/gdkdnd.c (gdk_window_cache_destroy): Free window cache structure. * gtk/gtkdnd.c (gtk_drag_set_icon_pixmap): Set an event mask on the drag window so clicking on it doesn't pop up root menus, etc. * gtk/gtkdnd.c (gtk_drag_button_release_cb): Remove signal handlers at button release.
* call gtk_spin_button_update before returning a valueLars Hamann1999-01-0810-69/+161
| | | | | | | | | | | | | | | | Fri Jan 8 00:42:00 1999 Lars Hamann <lars@gtk.org> * gtk/gtkspinbutton.c (gtk_spin_button_get_value_as_int) (gtk_spin_button_get_value_as_float): call gtk_spin_button_update before returning a value * gtk/gtkclist.c (gtk_clist_motion): don't allow 'drag selections' if clist is a drag source. (gtk_clist_drag_begin): remove pointer grabs, end ongoing selections. * gtk/gtkctree.c (remove_grab): copy of clist function. (gtk_ctree_drag_begin): let clists drag_begin method set the source info struct.
* Fixes to drawing the background of the bin window so that clearing andOwen Taylor1999-01-089-31/+148
| | | | | | | | | | | | | | | Thu Jan 7 19:10:21 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkviewport.c (gtk_viewport_style_set): Fixes to drawing the background of the bin window so that clearing and redrawing of child widgets work properly. * gtk/gtkwidget.c (gtk_widget_idle_draw): Juggle around data so that if somebody triggers more redraw queuing from a expose_event handler, it doesn't confuse the heck out of GTK+. (But is highly liable to cause an infinite loop...)
* Fix some more memory leaks.Owen Taylor1999-01-078-2/+67
| | | | | | | Thu Jan 7 12:31:41 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkselection.c (gtk_target_list_unref): Fix some more memory leaks.
* fix for dnd bug reported by Bertrand Guiheneuf. Don't return FALSE ifLars Hamann1999-01-068-20/+28
| | | | | | | | Wed Jan 6 23:14:19 1999 Lars Hamann <lars@gtk.org> * gtk/gtkctree.c (gtk_ctree_drag_motion): fix for dnd bug reported by Bertrand Guiheneuf. Don't return FALSE if source widget != dest. widget.
* Added Italian textsTristan Tarrant1999-01-069-1/+481
|
* free the event that was returned to us by gtk_get_current_eventGeorge Lebl1999-01-0610-8/+48
| | | | | | | Tue Jan 05 21:18:00 1999 George Lebl <jirka@5z.com> * gtk/gtkmenu.c,gtk/gtkmenuitem.c,gtk/gtkeditable.c: free the event that was returned to us by gtk_get_current_event