summaryrefslogtreecommitdiff
path: root/gtk/gtkstatusbar.c
Commit message (Collapse)AuthorAgeFilesLines
* Added gdk_text_extents_wc()Owen Taylor1998-12-151-1/+1
| | | | | | | | | | | | | | | | | | | 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.
* I submitted this patch twice to gtk-devel-list, and received no comments,Elliot Lee1998-11-301-1/+1
| | | | | | | | | | | | | | | | | I submitted this patch twice to gtk-devel-list, and received no comments, so am committing it. Although not exhaustively tested, I have been using this gtk+ for a week w/o problems, and I did read the code to ensure that nothing ever writes to these data structures. If by chance people encounter SEGV's in gtk+ code that is setting values in global data structures, this patch could be a possible culprit. 1998-11-30 Elliot Lee <sopwith@cuc.ml.org> * {gdk,gtk}/*.c: Make read-only data structures "static const" to allow them to be shared, mainly including (but not limited to) the GtkTypeInfo structures for each class. * gtk/gtkfilesel.c: Add /net to the "leave me alone" directory listing.
* Use common marshalling routines instead of having widget-private ones. ItElliot Lee1998-07-211-21/+2
| | | | | | | | | Use common marshalling routines instead of having widget-private ones. It compiles & links. testgtk segfaults. I'm convinced that is Somebody Else's Problem (marshalling routine gets func_data=0x0 and blithely passes it on) but the fact that it happens now & not before makes me wrong :-)
* changed reversed_[12] to reserved_[12] in gtk_*_get_type functions.Tim Janik1998-07-041-2/+2
| | | | | | | | | | | Sat Jul 4 13:16:24 1998 Tim Janik <timj@gtk.org> * gtk/*.c: changed reversed_[12] to reserved_[12] in gtk_*_get_type functions. * gdk/gdkwindow.c: * gdk/gdkvisual.c: check for some pointer values to be != NULL, prior to XFree() calls.
* call the base class init fucntions from all parent types upon classTim Janik1998-06-281-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Jun 28 04:29:10 1998 Tim Janik <timj@gtk.org> * gtk/gtktypeutils.c (gtk_type_class_init): call the base class init fucntions from all parent types upon class initialization. * gtk/gtkcontainer.c: (gtk_container_get_type): announce gtk_container_base_class_init to the type system. (gtk_container_base_class_init): new function to feature base class initialization. (gtk_container_get_child_arg): (gtk_container_set_child_arg): call the GtkContainerClass get_child_arg and set_child_arg methods of the class indicated through the argument name. * gtk/gtkobject.c: (gtk_object_base_class_init): new function to feature base class initialization. (gtk_object_init_type): announce gtk_object_base_class_init to the type system. (gtk_object_class_init): setup the get_arg and set_arg pointers for GtkObjectClass. (gtk_object_setv): (gtk_object_getv): call the GtkObjectClass get_arg and set_arg methods, instead of bothering the type system with this. * gtk/gtkaccellabel.c: * gtk/gtkbutton.c: * gtk/gtkradiobutton.c: * gtk/gtktable.c: * gtk/gtktogglebutton.c: * gtk/gtktipsquery.c: * gtk/gtkbox.c: * gtk/gtkpacker.c: * gtk/gtkwidget.c: * gtk/gtkwindow.c: * gtk/gtkframe.c: * gtk/gtkmisc.c: * gtk/gtklabel.c: set the object_class->{g|s}et_arg pointers to the corresponding gtk_*_{g|s]et_arg functions and updated the gtk_*_get_type functions wrt GtkTypeInfo initialization. changed a lot of the set/get arg functions to take a GtkObject argument. gtk/gtkadjustment.c: gtk/gtkalignment.c: gtk/gtkarrow.c: gtk/gtkaspectframe.c: gtk/gtkbbox.c: gtk/gtkbin.c: gtk/gtkcheckbutton.c: gtk/gtkcheckmenuitem.c: gtk/gtkclist.c: gtk/gtkcolorsel.c: gtk/gtkcombo.c: gtk/gtkctree.c: gtk/gtkcurve.c: gtk/gtkdata.c: gtk/gtkdialog.c: gtk/gtkdrawingarea.c: gtk/gtkeditable.c: gtk/gtkentry.c: gtk/gtkeventbox.c: gtk/gtkfilesel.c: gtk/gtkfixed.c: gtk/gtkfontsel.c: gtk/gtkgamma.c: gtk/gtkhandlebox.c: gtk/gtkhbbox.c: gtk/gtkhbox.c: gtk/gtkhpaned.c: gtk/gtkhruler.c: gtk/gtkhscale.c: gtk/gtkhscrollbar.c: gtk/gtkhseparator.c: gtk/gtkimage.c: gtk/gtkinputdialog.c: gtk/gtkitem.c: gtk/gtkitemfactory.c: gtk/gtklist.c: gtk/gtklistitem.c: gtk/gtkmenu.c: gtk/gtkmenubar.c: gtk/gtkmenuitem.c: gtk/gtkmenushell.c: gtk/gtknotebook.c: gtk/gtkoptionmenu.c: gtk/gtkpaned.c: gtk/gtkpixmap.c: gtk/gtkpreview.c: gtk/gtkprogressbar.c: gtk/gtkradiomenuitem.c: gtk/gtkrange.c: gtk/gtkruler.c: gtk/gtkscale.c: gtk/gtkscrollbar.c: gtk/gtkscrolledwindow.c: gtk/gtkseparator.c: gtk/gtkspinbutton.c: gtk/gtkstatusbar.c: gtk/gtktext.c: gtk/gtktoolbar.c: gtk/gtktooltips.c: gtk/gtktree.c: gtk/gtktreeitem.c: gtk/gtkvbbox.c: gtk/gtkvbox.c: gtk/gtkviewport.c: gtk/gtkvpaned.c: gtk/gtkvruler.c: gtk/gtkvscale.c: gtk/gtkvscrollbar.c: gtk/gtkvseparator.c: updated the GtkTypeInfo initialization code to match the modified GtkTypeInfo structure.
* configure.in acheader.h gdk/gdkwindow.c Check for Shape extension both onOwen Taylor1998-05-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun May 3 13:38:22 1998 Owen Taylor <otaylor@gtk.org> * configure.in acheader.h gdk/gdkwindow.c Check for Shape extension both on the client and server side. (And, more importantly, check for the shape extension so we may include -lXext even when compiling with --disable-xshm) Don't set override_redirect on all shaped windows. It isn't necessary. * gdk/gdkwindow.c: Set ->colormap to NULL for root and foreign windows. Use this to check if we need to get the colormap from X. Fri May 1 22:32:47 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtkbutton.c (gtk_button_paint): Draw the areas between the default and the button always in GTK_STATE_NORMAL. * gtk/gtkrange.c (gtk_range_style_set): Added a style_set callback. Fri May 1 16:40:57 1998 Owen Taylor <otaylor@gtk.org> * gdk/gdkpixmap.c (gdk_pixmap_colormap_create_from_xpmp[_d]): Fix a buffer overflow on pixmaps that claim to have more than 31 characters per pixel. (gdk_pixmap_read_string): Don't wrap around strings longer than half of address space ;-) * gtk/gtk[vh]ruler.c gtk/gtkinputdialog.c: Expand some buffers that were used for printing integers. * */* (almost): Style: All int foo () { ... } changed to int foo (void) { ... } ^^^^^^^ This is why some many files changed Even where there were proper prototypes elsewhere. * gdk/gxid.c (handle_claim_device): Some extra checks. It isn't safe against being fed bad X id's, but at least it should be safe against deleting all your files.
* Changed LGPL address for FSF in all .h and .c filesPDT 1998 Shawn T. Amundson1998-04-131-2/+3
| | | | | | Sun Apr 12 18:54:29 PDT 1998 Shawn T. Amundson <amundson@gtk.org> * Changed LGPL address for FSF in all .h and .c files
* Picky --enable-ansi cleanups.Owen Taylor1998-04-101-9/+18
| | | | | | | | | | | | | | | | | | Thu Apr 9 18:36:31 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkmisc.c gdk/gdkwindow gtk/gtkentry.c gtk/testgtk.c: Picky --enable-ansi cleanups. * gtk/gtkstatusbar.c (gtk_statusbar_pop): Pop top message off _belonging_to_this_context_. (gtk-d4bjorn-980409-0) From "Damon Chaplin" <DAChaplin@email.msn.com> * gtk/gtktable.c (gtk_table_size_request_pass3): Small fix to size requisition code. * gtk/gtknotebook.c: Make sure not to do things to page->tab_label if it doesn't exist.
* return TRUE for GtkWidget::delete_event to avoid destruction of our floatTim Janik1998-03-121-1/+0
| | | | | | | | | | | | | | | | 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.
* applied gtk-shige-980311-0.patch.gz, which removes the erronerousTim Janik1998-03-121-5/+5
| | | | | | | | | | | | | | | | | | Thu Mar 12 07:43:33 1998 Tim Janik <timj@gimp.org> * gdk/gdk.h: * gdk/gdkvisual.c: applied gtk-shige-980311-0.patch.gz, which removes the erronerous gdk_query_visuals() function in favour of gdk_list_visuals() which does a correct job. * gtk/gtkcontainer.h: applied gtk-draco-980311-0.patch.gz which fixes a class cast check. * gtk/gtkspinbutton.c: applied gtk-hamann_jeske-980312-0.patch.gz about '+' sign acceptance. * gtk/gtknotebook.c: applied gtk-hamann_jeske-980311-1.patch.gz which cares about delayed tab label creation.
* 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.
* Miscellaneous minor fixes to remove ANSI C incompatibilitiesOwen Taylor1998-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Mar 2 17:48:38 1998 Owen Taylor <owt1@cornell.edu> Miscellaneous minor fixes to remove ANSI C incompatibilities * gdk/gdkregion.c gtk/gtkclist.c: fix // comments * gdk/gdkdnd.c gdk/gdkinputcommon.h: change types of some arguments to ANSI functions * gtk/gtkcombo.c gtk/gtktree.c: fix casts of function pointers to void * * gtk/gtkmain.c: An actual bug! (in deprecated gtk_input_add_interp) * gtk/gtknotebook.h: Bitfields must be gint or guint. (and should be guint) * gtk/gtkstatusbar.c: trailing ';' * gtk/testgtk.c: GList where there should have been GSList * glib.h gutils.c : changed g_strcasecmp to take gchar* not guchar* * testglib.c: Remove trailing ; after functions
* forgot to remove a printfTim Janik1998-03-011-1/+0
| | | | -timj
* complete api change to honour message contexts. unfortunaltely this alsoTim Janik1998-03-011-26/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Mar 1 22:59:09 1998 Tim Janik <timj@gimp.org> * gtk/gtkstatusbar.h: * gtk/gtkstatusbar.c: complete api change to honour message contexts. unfortunaltely this also involved argument changes on the signal emissions which will not be caught by the compiler. your callbacks should look like: void message_text_popped (GtkStatusbar *statusbar, guint context_id, const gchar *text, gpointer func_data); * gtk/gtkwidget.c (gtk_widget_set_rc_style): eliminated bug about initial signal emission. (gtk_widget_set_parent): don't ensure style, just call gtk_widget_set_style_recurse. (gtk_widget_set_style_recurse): only change a widget's rc styles if if there has already been a lookup. * gtk/testgtk.c: adaptions for statusbar widget. substituted notebook pixmaps with pixmaps from fvwm, since we don't know where the originals came from. * gtk/gtkobject.c (gtk_object_data_destroy): call the destroy notifier with the objects data, not its internal structure. * gtk/gtkspinbutton.c (gtk_spin_button_button_press): small fix from lars.
* implemented the statusbar widget. my first intend was to fix the code, butTim Janik1998-02-231-48/+167
| | | | | | | | | | | | | | | | | | Mon Feb 23 13:44:10 1998 Tim Janik <timj@gimp.org> * gtk/gtkstatusbar.h: * gtk/gtkstatusbar.c: (re-)implemented the statusbar widget. my first intend was to fix the code, but then there was nothing to fix - the whole thing was just a big JOKE! people who don't even know the semantics of the g_list_* functions shouldn't put their hands on widget code and inheritance! this is the first step to get bug "BUG: statusbar/hbox (redraw?) problem" worked out, i have to leave now, but will continue work on the resizing code this evening.
* Shows the widgets properly. -JayJay Painter1998-01-271-4/+5
|
* Statusbar widget. -ShawnShawn Amundson1998-01-181-0/+166
Statusbar widget. -Shawn