]> Pileus Git - ~andy/gtk/commitdiff
Apply a cleanup patch by Kjartan Maraas (#341812)
authorMatthias Clasen <mclasen@redhat.com>
Sun, 8 Oct 2006 05:07:55 +0000 (05:07 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 8 Oct 2006 05:07:55 +0000 (05:07 +0000)
2006-10-08  Matthias Clasen  <mclasen@redhat.com>

* Apply a cleanup patch by Kjartan Maraas  (#341812)

83 files changed:
ChangeLog.pre-1-2
ChangeLog.pre-2-0
HACKING
NEWS
README
contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
demos/gtk-demo/appwindow.c
demos/gtk-demo/hypertext.c
demos/testpixbuf-drawable.c
demos/testpixbuf.c
docs/README.linux-fb
docs/developers.txt
docs/dnd_internals.txt
docs/faq/gtk-faq.sgml
docs/faq/gtkfaq.sgml
docs/focus_tracking.txt
docs/generation.txt
docs/gtk-config.txt
docs/refcounting.txt
docs/styles.txt
docs/text_widget.txt
docs/widget_system.txt
gdk-pixbuf/gdk-pixbuf-csource.c
gdk-pixbuf/gdk-pixdata.c
gdk-pixbuf/queryloaders.c
gtk/gtkaboutdialog.c
gtk/gtkaccelmap.c
gtk/gtkaction.c
gtk/gtkassistant.c
gtk/gtkbutton.c
gtk/gtkcalendar.c
gtk/gtkcellrendereraccel.c
gtk/gtkcellrendererpixbuf.c
gtk/gtkcolorsel.c
gtk/gtkcombo.c
gtk/gtkcombobox.c
gtk/gtkctree.c
gtk/gtkcurve.c
gtk/gtkdnd.c
gtk/gtkentrycompletion.c
gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserdefault.c
gtk/gtkfilechooserentry.c
gtk/gtkfilechoosersettings.c
gtk/gtkfilesystemunix.c
gtk/gtkhandlebox.c
gtk/gtkiconcache.c
gtk/gtkiconfactory.c
gtk/gtkicontheme.c
gtk/gtkiconview.c
gtk/gtkimagemenuitem.c
gtk/gtkinputdialog.c
gtk/gtkmenu.c
gtk/gtkmessagedialog.c
gtk/gtknotebook.c
gtk/gtkpathbar.c
gtk/gtkprinteroptionwidget.c
gtk/gtkrange.c
gtk/gtkrbtree.c
gtk/gtkrecentchooserdefault.c
gtk/gtkrecentchoosermenu.c
gtk/gtkscrolledwindow.c
gtk/gtkselection.c
gtk/gtkstatusbar.c
gtk/gtkstatusicon.c
gtk/gtktextbuffer.c
gtk/gtktextiter.c
gtk/gtktextsegment.c
gtk/gtktexttag.c
gtk/gtktoggleaction.c
gtk/gtktogglebutton.c
gtk/gtktoolbar.c
gtk/gtktoolbutton.c
gtk/gtktooltips.c
gtk/gtktreedatalist.c
gtk/gtktreemodelfilter.c
gtk/gtktreeview.c
gtk/gtkvscale.c
gtk/gtkwidget.c
gtk/queryimmodules.c
gtk/theme-bits/decompose-bits.c
gtk/updateiconcache.c
gtk/xdgmime/xdgmimealias.c

index ac6012517922945c6a45a571b2c6bb62a88be3bc..bd3e832e4690a5aebdb12d93661baa34d566f5fb 100644 (file)
@@ -7981,7 +7981,7 @@ Thu Jun  4 02:20:42 1998  Tim Janik  <timj@gtk.org>
        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
        the emission of the "add-accelerator" signal on a widget. this is
-       usefull to prevent accelerator installation on certain widgets.
+       useful to prevent accelerator installation on certain widgets.
 
        * gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
        labels left justified, by setting their alignment. stop accelerator
index 30c63369a77362859c8fc6bbb423a5e850ae6969..6765f7278f070fa7ad00df4083194ac995b2adf1 100644 (file)
@@ -17108,7 +17108,7 @@ Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
        Use fb_mem, fb_stride, fb_width, fb_height.
        Added recompute_rowstride to reset the rowstride of all windows.
        Added gdk_fb_recompute_all() which recomputes rootwindow size,
-       window abs positions and window rowstrides. Usefull when the
+       window abs positions and window rowstrides. Useful when the
        rotation has changed.
 
 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
diff --git a/HACKING b/HACKING
index 78ba2bdc484bcf41e2a7858bb38efa5ca6edb754..53ccc8f72c78826d43e1862843f0937d3eb061be 100644 (file)
--- a/HACKING
+++ b/HACKING
@@ -47,7 +47,7 @@ gtk+ and glib.  You can do the following to get glib and gtk+ from cvs:
    $ cvs -z3 checkout atk
    $ cvs -z3 checkout gtk+
 
-For information about submitting patches and commiting changes
+For information about submitting patches and committing changes
 to CVS, see the README and README.cvs-commits files. In particular, 
 don't, under any circumstances, commit anything to CVS before
 reading and understanding README.cvs-commmits.
diff --git a/NEWS b/NEWS
index ec1eca119fc3d976c01c8a75d9a0493e54340c08..d57992e3e3ae47938110a50375e1e28621f4c137 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -453,10 +453,10 @@ Overview of Changes from GTK+ 2.9.0 to 2.9.1
 
 * Arrow sizes in scrolled menus and notebooks are themable
 
-* GDK keysyms have be synched with Xorg 7.1
+* GDK keysyms have be synced with Xorg 7.1
 
 * Bugs fixed:
- 340676 print backend type modules not correctly reregistering 
+ 340676 print backend type modules not correctly re-registering 
         their types
  340870 gdk_window_get_toplevels docstring error
  323956 Unwanted accelerate key in the action-based toolbar
@@ -475,7 +475,7 @@ Overview of Changes from GTK+ 2.9.0 to 2.9.1
         MENU_SCROLL_ARROW_HEIGHT
  325282 Add GtkNotebook::tab-overlap style property
  341247 possible crash with tab_label = NULL
- 321896 Synch gdkkeysyms.h/gtkimcontextsimple.c with X.org 6.9/7.0
+ 321896 Sync gdkkeysyms.h/gtkimcontextsimple.c with X.org 6.9/7.0
  341416 Save FileChooserDialog doesn't response
  336774 gtk_recent_manager_add_full
  340401 critical warnings when using window groups
@@ -536,9 +536,9 @@ Overview of Changes from GTK+ 2.8.x to 2.9.0
 
 * GtkFileChooser:
   - Communication with backends is now asynchronous to avoid
-    blocking on filesystem operations. Due to the required interface
+    blocking on file system operations. Due to the required interface
     changes, the GTK+ ABI version has been bumped to 2.10.0. Third-party
-    filesystem backends have to be ported to the new interface, other
+    file system backends have to be ported to the new interface, other
     modules, such as theme engines, input method modules or pixbuf loaders 
     have to be rebuilt so that they are installed in the right place
     for GTK+ to find them.
@@ -575,7 +575,7 @@ Overview of Changes from GTK+ 2.8.x to 2.9.0
   - The spacing of buttons around children can be themed with
     the GtkButton::inner-border style property. Apps can override
     this per-widget using the corresponding inner-border property 
-  - GtkMenu has aquired a horizontal-padding style property 
+  - GtkMenu has acquired a horizontal-padding style property 
   - There are style properties for the color of hyperlinks,
     GtkWidget::link-color and GtkWidget::visited-link-color
   - GtkTreeview row hinting now takes the selection into account
@@ -607,7 +607,7 @@ Overview of Changes from GTK+ 2.8.1 to GTK+ 2.8.2
 =================================================
 * Fix a crash with custom icon themes, which affected
   the gnome-theme-manager. [Kjartan Maraas]
-* Make sure font and cursor settings are propaged down
+* Make sure font and cursor settings are propagated down
   to the screen initially. [Frederic Crozat]
 
 Overview of Changes from GTK+ 2.8.0 to GTK+ 2.8.1
@@ -644,7 +644,7 @@ Overview of Changes from GTK+ 2.7.5 to GTK+ 2.8.0
 Overview of Changes from GTK+ 2.7.4 to GTK+ 2.7.5
 =================================================
 * Rename the default theme to "Raleigh" [Thomas Wood]
-* Add a permformance testing framework [Federico Mena Quintero]
+* Add a performance testing framework [Federico Mena Quintero]
 * Catch format errors in translations. This may cause 
   "make check" to fail when using older versions
   of gettext [Matthias]
@@ -868,7 +868,7 @@ Overview of Changes from GTK+ 2.6.x to GTK+ 2.7.0
 * Win32 changes
  - Improve keyboard handling [Tor Lillqvist]
  - Improve clipboard handling [Ivan Wong]
- - Do delayed rendering for transfering images 
+ - Do delayed rendering for transferring images 
    through the clipboard [Ivan Wong]
  - Improve tablet handling [Robert Ã–gren]
  - Initialize input devices lazily [Robert Ã–gren]
@@ -1000,10 +1000,10 @@ Overview of Changes from GTK+ 2.4.x to GTK+ 2.6.0
   - Obey the Pango backspace-deletes-character attribute
 
 * Changes in Clipboard/Selection/DND handling
-  - Selection ownerchip change notification
+  - Selection ownership change notification
   - API to handle text, image and file targets
   - Support text/plain target
-  - Support clipboard persistency
+  - Support clipboard persistence
   - Support xdnd v5
   - Reduce clipboard timeout to 30 seconds
 
@@ -1022,7 +1022,7 @@ Overview of Changes from GTK+ 2.4.x to GTK+ 2.6.0
   - License information for image loaders
   - Disable loaders
   - Simple rotation
-  - Make threadsafe
+  - Make thread-safe
 
 * Performance improvements
   - Increase chunk size for incremental selection transfers
@@ -1066,7 +1066,7 @@ Overview of Changes from GTK+ 2.5.6 to GTK+ 2.6.0
     width of a label in characters [Christian Persch]
 * GtkIconView 
   - Arrange items in a grid [Matthias]
-  - Convert hardcoded spacing constants into properties [Matthias]
+  - Convert hard coded spacing constants into properties [Matthias]
 * GtkCellRendererText
   - Add ::width-chars property [James M. Cape]
 * Win32
@@ -1084,7 +1084,7 @@ Overview of Changes from GTK+ 2.5.6 to GTK+ 2.6.0
 Overview of Changes from GTK+ 2.5.5 to GTK+ 2.5.6
 =================================================
 * GtkFileChooser
-  - Improve keybindings [Davyd Madeley, Federico Mena Quintero]
+  - Improve key bindings [Davyd Madeley, Federico Mena Quintero]
   - Speed up loading of large directories [Federico]
   - Move "Browse for other folders" expander up [Federico]
   - Support DND from the path bar [Federico]
@@ -1141,7 +1141,7 @@ Overview of Changes from GTK+ 2.5.5 to GTK+ 2.5.6
 Overview of Changes from GTK+ 2.5.4 to GTK+ 2.5.5
 =================================================
 * gdk-pixbuf
-  - Make threadsafe [Colin Walters]
+  - Make thread safe [Colin Walters]
 * GtkFileChooser
   - Make tooltips work better [Matthias Clasen]
   - Show files (grayed out) in folder modes [Nickolay V. Shmyrev]
@@ -1225,7 +1225,7 @@ Overview of Changes from GTK+ 2.5.3 to GTK+ 2.5.4
 * Add a GtkMenuToolButton widget which displays a
  dropdown menu from a toolbar button.  [Paolo Borelli]
 * Make menus scroll faster [Soeren Sandmann]
-* Allow themes to displace focus recangles in buttons
+* Allow themes to displace focus rectangles in buttons
  on click [Soeren, Matthias]
 * Add a public setting for button ordering [Owen Taylor, Matthias]
 * GtkImage
@@ -1235,7 +1235,7 @@ Overview of Changes from GTK+ 2.5.3 to GTK+ 2.5.4
 * Add a function to obtain the string representation of
  accelerators used in GtkAccelLabel [John Spray, Matthias]
 * Win32 bug fixes [Robert Ã–gren]
- - Fix commandline option handling [Tor Lillqvist]
+ - Fix command line option handling [Tor Lillqvist]
  - Make IME input method work better [Tor]
 * Other bug fixes [Joel Fredrikson, Darren Creutz,
  Manish Singh, Matthias, Tristan Van Berkom, Christian Persch,
@@ -1272,7 +1272,7 @@ Overview of Changes from GTK+ 2.5.2 to GTK+ 2.5.3
  - Improve positioning of popups [Matthias]
 * Make input methods respect editability [Noah Levitt]
 * Add an setting to specify modules to load [Alex Graveley]
-* Use GOption for commandline argument parsing [Anders Carlsson]
+* Use GOption for command line argument parsing [Anders Carlsson]
 * Default theme
  - Improve drawing of expanders [Matthias Clasen]
 * Add a configure option to disable the use of ELF visibility 
@@ -1307,7 +1307,7 @@ Overview of Changes from GTK+ 2.5.1 to GTK+ 2.5.2
    for use in preference dialogs.  [James M. Cape]
 * GtkFileChooser
  - Add getter and setter for the ::show-hidden property [Jeff Franks]
- - Allow paths to be entered as part of the filename. [Federico Mena Quintero]
+ - Allow paths to be entered as part of the file name. [Federico Mena Quintero]
  - Make separator in bookmarks pane unselectable [Matthias Clasen]
  - Improve activation on focus [Federico]
  - Avoid warnings when opened on non-default screens [Abel Daniel]
@@ -1415,7 +1415,7 @@ Overview of Changes from GTK+ 2.4.1 to GTK+ 2.5.0
  - always show icons [Federico]
  - bug fixes [Federico, Christian Neumair, Alex Roitman]
 * GtkComboBox, GtkComboBoxEntry
- - add missing getters and some more convience API [Matthias, 
+ - add missing getters and some more convenience API [Matthias, 
   Christian Neumeir, Oliver Andrieu]
  - improve placement and sizing of popups [Matthias]
  - support insensitive items [Matthias]
@@ -1430,7 +1430,7 @@ Overview of Changes from GTK+ 2.4.1 to GTK+ 2.5.0
  - support inline autocompletion [Matthias]
 * GtkUIManager
  - fix signal registration [Michael Natterer]
- - make generated XML parseable [Sven Neumann]
+ - make generated XML parsable [Sven Neumann]
  - fix get_widget to return menus [Matthias]
 * GtkTreeView
  - hover-selection mode [Matthias]
@@ -1905,7 +1905,7 @@ Overview of Changes from GTK+-2.2.x to GTK+-2.3.0
  - Add internals documentation [Havoc Pennington]
 
 * GtkToolbar [Soeren]
- - Add a more constistent and extensible toolbar API; preserve
+ - Add a more consistent and extensible toolbar API; preserve
    old API for backwards compatibility [James, Anders Carlsson, Owen]
  - Support for sliding buttons like OS X
  - Keyboard navigation
@@ -2018,7 +2018,7 @@ Overview of Changes in GTK+ 2.2.3
    field of a XKB event as a window ID and found a pixmap that matched.
    [Owen Taylor, with essential backtrace from Kjartan Maraas]
  - Fix CapsLock and NumLock for non-XKB [Robert Basch]
- - Fix problems with, eg. Ctrl-Alt-Backspace hiding Cntrl-Backspace [Owen]
+ - Fix problems with, eg. Ctrl-Alt-Backspace hiding Ctrl-Backspace [Owen]
  - Workaround Xinerama servers reporting wrong depths [Owen]
 * GtkTreeView [Kristian Rietveld]
  - Fix scrolling once more [Pedro Gimeno, Michael Natterer, Timo Sirainen]
@@ -2086,7 +2086,7 @@ Overview of Changes in GTK+ 2.2.2
  - Work around RENDER extension bugs on certain Sun X servers [Morten Welinder]
  - Zero unused fields in client messages we send Lubos Lunak]
  - Fix occasional segfault when drawing pixbufs [Hans Petter Jansson]
- - Fix wrong initializaiton that was keeping XShm from being used.
+ - Fix wrong initialization that was keeping XShm from being used.
 * Win32 backend [Tor Lillqvist]
  - Tweak line drawing
  - Mouse/cursor fixes [Allin Cottrell]
@@ -2269,7 +2269,7 @@ Widget improvements:
   - Privatize gtk_tree_store_move(), add gtk_tree_store_move_before/after()
   - Add GTK_CELL_RENDERER_FOCUSED flag
   - Keynav fixes, including adding boolean return values for keybinding
-    signals (API breakage for API that noone should have been using)
+    signals (API breakage for API that no one should have been using)
     [Narayana Pattipati]
   - Add gtk_tree_view_column_cell_get_position()
   - Add an inconsistent state for GtkCellRendererToggle
@@ -2615,7 +2615,7 @@ Overview of Changes in GTK+ 2.0.0 rc1
 * Try to fix key handling without XKEYBOARD extension [Owen]
 * Documentation fixes and improvements 
   [Matthias Clasen, Alexey Malyshev, Akira Tagoh, Vitaly Tishkov]
-* Widget drawing improvments [Soeren Sandmann]
+* Widget drawing improvements [Soeren Sandmann]
 * Allow cycling between multiple menu bars with <Control>Tab [Owen]
 * Try to build libraries with only shared library dependencies on Xft to 
   deal with transition to Xft2 [Owen]
@@ -2683,7 +2683,7 @@ Overview of Changes in GTK+ 1.3.14
 * Fix GtkCalendar focus drawing [Bill Haneman]
 * Allow themeable cursor thickness [Bill]
 * Start of fixing of tutorial for GTK+-2.0 [Matthias]
-* Add a ::adjust-bounds signal to GtkRange to allow spreadsheat style
+* Add a ::adjust-bounds signal to GtkRange to allow spreadsheet style
   scrollbars. [Jody Goldberg]
 * Add the ability to turn on multiple selection for GtkFileSel [Manish]
 * Bug fixes
@@ -2781,7 +2781,7 @@ Overview of Changes in GTK+ 1.3.11
   functions (Owen, Damian Ivereigh)
 * Fixes to GtkPlug/GtkSocket (Michael Meeks, Owen)
 * Change button ordering in standard dialogs to correspond to 
-  GNOME useability project proposal (Gregory Merchan)
+  GNOME usability project proposal (Gregory Merchan)
 * Add support for context sensitivity in input methods (Owen)
 * Hook up gtk_im_context_set_use_preedit() (Hidetoshi Tajima)
 * Fix gdk_window_scroll() and other aspects of big windows (Owen)
@@ -2815,7 +2815,7 @@ Overview of Changes in GTK+ 1.3.10
 * Support text chunks for the PGN loader, add gdk_pixbuf_get_option()
   [Sven Neumann]
 * Rename gdk_pixbuf_new_from_stream back to new_from_inline [Owen]
-* Automatically call setlocale(), unless explictely disabled [Owen]
+* Automatically call setlocale(), unless explicitly disabled [Owen]
 * Property addition to various widgets [Michael Meeks, Owen]
 * Support building with automake-1.4 [James]
 * Make GtkRadioButton groups act as a single focus point [Owen]
@@ -2946,7 +2946,7 @@ Overview of Changes in GTK+ 1.3.5
 * XEMBED-based GtkPlug/GtkSocket now basically works.
 * Drag and drop of column headers in GtkTreeView
 * GtkColorSelector work: hooks for saving and propagating palette, UI tweaks,
-  and API sanitization
+  and API sanitation
 * Key binding fixes
 * Configurable padding/spacing in a lot of places
 * Invisible text in GtkTextView fixed
@@ -3016,7 +3016,7 @@ Widgets:
   scrolling menus. [Alex]
 * Simplification of progress bar API. [Havoc]
 * Make GtkImage a generic image-display widget. [Havoc]
-* New GtkTreeView tree widget. Model/view architecture, flexible renderering,
+* New GtkTreeView tree widget. Model/view architecture, flexible rendering,
   large datasets, etc. [Jonathan]
 * New GtkMessageBox widget for message display. [Havoc]
 * Allow labels to have contents set from XML-like markup language. [Havoc]
@@ -3026,8 +3026,8 @@ Internationalization:
 
 * Proper character set conversion for clipboard/selection. [Owen]
 * New input method system via loadable modules; support on-the-spot
-  preedit in GtkEntry and new text widget; allow switchin input methods
-  on the fly; include modules for XIM and demo Cyrillic-tranliteration 
+  preedit in GtkEntry and new text widget; allow switching input methods
+  on the fly; include modules for XIM and demo Cyrillic-transliteration 
   module. [Owen]
 * VIQR, Thai, and Inuktitut input methods. [Robert]
 * Convert po files to UTF-8. [Robert]
@@ -3096,7 +3096,7 @@ Overview of Changes in GTK+ 1.2.6:
 * gtk[vh]scale: minor fixups
 * rename idle to idle_id in testgtk to avoid conflicts with 
   broken libs
-* More consistant naming of gtkrc files
+* More consistent naming of gtkrc files
 * Added language support: ro, uk
 
 Overview of Changes in GTK+ 1.2.5:
@@ -3110,7 +3110,7 @@ Overview of Changes in GTK+ 1.2.5:
 * check for 5.002 now, to avoid failing autogeneration build rules due
   to old perl versions.
 * fonts (and fontsets) are cached now.
-* more autogeneration make rules and dependancy fixups, we should be
+* more autogeneration make rules and dependency fixups, we should be
   save with autogeneration up to make -j12 now ;)
 * new window position GTK_WIN_POS_CENTER_ALWAYS, which will recenter the
   GtkWindow on every size change.
@@ -3118,7 +3118,7 @@ Overview of Changes in GTK+ 1.2.5:
   races with the new resizing code.
 * the new wm hints and resizing code is absolutely perfect and bug free now,
   it only lacks testing ;)
-* fixed up various rc style memory prolems.
+* fixed up various rc style memory problems.
 * gtk_widget_modify_style() now properly changes the style of realized widgets
   and references the style passed into it. if people worked around this bug,
   this will introduce a slight memory leak in their code.
@@ -3162,17 +3162,17 @@ Overview of Changes in GTK+ 1.2.2:
 * Bug fixes for the Gtk selection code.
 * Minor bug fixes to the Gdk Atom cache and Dnd code (with --display option).
 * Bug fixes and leak plugs for the Gdk IM code.
-* Added gtk_object_get() facility to retrive object arguments easily.
+* Added gtk_object_get() facility to retrieve object arguments easily.
   The var args list expects ("arg-name", &value) pairs.
 * Fixed mapping for GdkInputCondition<->GIOCondition, this should fix
-  problems where closed pipes were no longer signalling GDK_INPUT_READ on
+  problems where closed pipes were no longer signaling GDK_INPUT_READ on
   systems with a native poll().
 * Some cleanups to GtkLabel's memory allocation code (shouldn't leak memory
   anymore).
 * We don't attempt to lookup xpm color "None" anymore, this should prevent
   eXodus (commercial X windows server) from popping up a color dialog every
   time a transparent pixmap is created.
-* Fixed bug where Gtk timout/idle handlers would execute without the global
+* Fixed bug where Gtk timeout/idle handlers would execute without the global
   Gdk lock being held.
 * Other minor bug fixes.
 
@@ -3182,7 +3182,7 @@ Overview of Changes in GTK+ 1.2.1:
 * GtkItemFactory can "adopt" foreign menu items now and manage their
   accelerator installation. This is often required to get GtkItemFactory
   like accelerator propagation between different windows with the same
-  menu heirarchy and for centralized parsing and saving of accelerators.
+  menu hierarchy and for centralized parsing and saving of accelerators.
 * GtkCList/GtkCTree buttons should always display correctly now.
 * Miscellaneous other bug fixes.
 
@@ -3215,7 +3215,7 @@ Overview of Changes in GTK+ 1.1.16:
   This correct various bugs with gtk_widget_set_usize().
 * Fixes for XIM on X11R5 systems
 * Don't allow cut-and-paste of text in password-style entries
-* --enable-debug is now on by default for the development releaes.
+* --enable-debug is now on by default for the development release.
   (When compiling for "production", use --enable-debug=minimum)
 * Handle systems where Helvetica is not present more gracefully
 * Fixes for memory leaks
@@ -3244,7 +3244,7 @@ What is new in GTK+ 1.1.14:
 * Fixes to make gtk_radio_button_set_group() keep only
   one radio button in the group active
 * Foreign windows are now always treated as viewable; this fixes
-  a problem where updating didn't occure properly in GtkPlug
+  a problem where updating didn't occur properly in GtkPlug
 * DND fixes for 64 bit architectures, and for specifying operations 
   with modifier keys.
 * Major revisions to GtkLayout: avoid having to create window
@@ -3259,7 +3259,7 @@ What is new in GTK+ 1.1.13:
 * Tooltips windows are now named "gtk-tooltips" so rc file rules
   can match tooltips windows. Fixed interaction of tooltips and NO_WINDOW
   widgets.
-* Spin buttons now update their values upon value retrival.
+* Spin buttons now update their values upon value retrieval.
 * Overhaul of the resizing vs. redrawing logic to reduce redrawing needs
   a lot. Gtk makes full use of the draw_area coalescing code now, which
   got minorly improved as well.
@@ -3323,14 +3323,14 @@ What is new in GTK+ 1.1.7:
 * Various event handling fixes
 * Wide character support for entry and text
 * Destroy widgets _after_ propagating unrealize signals through 
-  widget heirarchy
+  widget hierarchy
 * Only build XIM-support if available
 * Tutorial and examples updates
 * Added gtk_drag_source_unset()
 
 What is new in GTK+ 1.1.6:
 
-* The signal system now features emission hooks whith special semantics,
+* The signal system now features emission hooks with special semantics,
   refer to the ChangeLog for this.
 * Minor? speedups and memory reductions to the emission handling of the
   signal system.
@@ -3363,13 +3363,13 @@ What is new in GTK+ 1.1.5:
 * Queued redraws of partial areas
 * Scrolledwindow (+Viewport) source incompatibilities, children that are added
   to a scrolled window don't get an automatic viewport anymore. a convenience
-  function gtk_scrolled_window_add_with_viewport() is suplied for this task
+  function gtk_scrolled_window_add_with_viewport() is supplied for this task
 * Deprecated functions will now issue a message, informing the programmer about
   the use of this function. These functions will get removed in future versions
 * Non-functional functions got removed entirely
 * gtk_widget_new() and gtk_object_new() will now auto-construct new objects.
   A new function gtk_object_default_construct() is provided now which should
-  be called after every gtk_type_new() to perfom the auto-construction
+  be called after every gtk_type_new() to perform the auto-construction
 * Improved argument support of several widgets
 * Bug Fixes
 
@@ -3386,7 +3386,7 @@ What is new in GTK+ 1.1.3:
 * Must enhanced DND support, removed old DND code
 * Idle functions are now implemented via GHook, giving a slight speed
   improvement
-* An environment variable GTK_MODULES which takes a colon seperated
+* An environment variable GTK_MODULES which takes a colon separated
   list of module names GTK+ will now automatically load at gtk_init() startup
 * GtkFontSel now has support for an extra 'base' filter
 * New function gdk_window_set_root_origin to get the real geometry taking
@@ -3400,7 +3400,7 @@ What is new in GTK+ 1.1.3:
 * New widget GtkInvisible - InputOnly offscreen windows used for reliable
   pointer grabs and selection handling in DND code
 * New functions gtk_object_remove_no_notify[_by_id] to remove a certain
-  data portion without invokation of its destroy notifier 
+  data portion without invocation of its destroy notifier 
 * gtk_spin_button_construct is now deprecated, use gtk_spin_button_configure
   instead 
 * gtk_clist_set_border is now deprecated, use gtk_clist_set_shadow_type 
@@ -3460,7 +3460,7 @@ What is new in GTK+ 1.1.1:
 What is new in GTK+ 1.1.0:
 
 * New widget GtkFontSelector.
-* New featurefull progress bar.
+* New featureful progress bar.
 * New container widget GtkPacker.
 * New object GtkItemFactory, GtkMenuFactory is deprecated.
 * New key binding system, configurable via rcfiles, similar to styles.
@@ -3482,7 +3482,7 @@ What is new in GTK+ 1.1.0:
 * Child arguments support for container widgets.
 * Far better support for object arguments, revamp of the underlying
   mechanism for speed and reusability. Child/object arguments don't
-  need to be preceeded by the "GtkType::" portion anymore.
+  need to be preceded by the "GtkType::" portion anymore.
 * Removed GtkAcceleratorTable in favour of GtkAccelGroup, accelerator display
   is now performed by a new widget GtkAccelLabel.
 * Overhaul of the resizing code. Resizing behaviour can now be specified
diff --git a/README b/README
index e33fcceb34c427471fae5f29d17325b08d77da93..fda012b444b95a9a02e6e0375e90212979f373fe 100644 (file)
--- a/README
+++ b/README
@@ -126,7 +126,7 @@ Release notes for 2.8
 Release notes for 2.6
 =====================
 
-* GTK+ 2.6 supports clipboard persistency. To make use of this feature,
+* GTK+ 2.6 supports clipboard persistence. To make use of this feature,
   a clipboard manager following the specification at
   http://www.freedesktop.org/wiki/Standards/clipboard-manager-spec
   must be running. A sample implementation of such a clipboard manager
@@ -137,11 +137,11 @@ Release notes for 2.6
 
 * Notification on clipboard ownership changes via GdkOwnerChange events 
   requires the XFIXES X extension. Applications can use the function
-  gdk_display_supports_selection_notification() to find out if ownerchip
+  gdk_display_supports_selection_notification() to find out if ownership
   change notification is available.
 
 * The icon theme code in GTK+ 2.6 follows the freedesktop.org icon theme 
-  specification. Setting the XDG_DATA_DIRS environtment variable may be 
+  specification. Setting the XDG_DATA_DIRS environment variable may be 
   necessary if your icons aren't installed in the default location 
   /usr/share/icons.
 
@@ -151,7 +151,7 @@ Release notes for 2.6
   see the gtk-update-icon-cache man page or the GTK+ documentation.
 
 * To reduce code size and improve efficiency, GTK+, when compiled 
-  with the GNU toolchain, has separate internal and external entry 
+  with the GNU tool chain, has separate internal and external entry 
   points for exported functions. The internal names, which begin with 
   IA__, may be seen when debugging a GTK+ program.
 
@@ -179,7 +179,7 @@ Release notes for 2.6
   compatibility are provided.
 
 * On Unix, the assumption of GLib and GTK+ by default is that filenames on 
-  the filesystem are encoded in UTF-8 rather than the encoding of the locale;
+  the file system are encoded in UTF-8 rather than the encoding of the locale;
   the GTK+ developers consider that having filenames whose interpretation
   depends on the current locale is fundamentally a bad idea.
 
@@ -197,7 +197,7 @@ Release notes for 2.6
 
   On Windows, filenames passed to GTK+ should always be in UTF-8, as
   in GLib 2.6. This is different than in previous versions of GTK+
-  where the system codepage was used. As in GLib, for DLL ABI
+  where the system code page was used. As in GLib, for DLL ABI
   stability, applications built against previous versions of GTK+ will
   use entry points providing the old semantics.
 
@@ -233,7 +233,7 @@ In the bug report please include:
   that can be downloaded.
 
 * If the bug was a crash, the exact text that was printed out when the
-  crash occured.
+  crash occurred.
 
 * Further information such as stack traces may be useful, but is not
   necessary. If you do send a stack trace, and the error is an X error,
index 38ad9b20b9ae99d4fbc92cc596527e7841e81af6..92f8c8d021112aa7ef06486ad2cb9e8697a68a51 100644 (file)
@@ -152,7 +152,6 @@ rgb1 (XImage *image, guchar *pixels, int rowstride, xlib_colormap *colormap)
        int xx, yy;
        int width, height;
        int bpl;
-       guint8 *s;
        register guint8 data;
        guint8 *o;
        guint8 *srow = image->data, *orow = pixels;
@@ -167,7 +166,6 @@ rgb1 (XImage *image, guchar *pixels, int rowstride, xlib_colormap *colormap)
        bpl = image->bytes_per_line;
 
        for (yy = 0; yy < height; yy++) {
-               s = srow;
                o = orow;
 
                for (xx = 0; xx < width; xx ++) {
@@ -191,7 +189,6 @@ rgb1a (XImage *image, guchar *pixels, int rowstride, xlib_colormap *colormap)
        int xx, yy;
        int width, height;
        int bpl;
-       guint8 *s;
        register guint8 data;
        guint8 *o;
        guint8 *srow = image->data, *orow = pixels;
@@ -221,7 +218,6 @@ rgb1a (XImage *image, guchar *pixels, int rowstride, xlib_colormap *colormap)
        }
 
        for (yy = 0; yy < height; yy++) {
-               s = srow;
                o = orow;
 
                for (xx = 0; xx < width; xx ++) {
@@ -988,7 +984,6 @@ convert_real_slow (XImage *image, guchar *pixels, int rowstride, xlib_colormap *
        int width, height;
        int bpl;
        guint8 *srow = image->data, *orow = pixels;
-       guint8 *s;
        guint8 *o;
        guint32 pixel;
        Visual *v;
@@ -1011,7 +1006,6 @@ convert_real_slow (XImage *image, guchar *pixels, int rowstride, xlib_colormap *
                 red_prec, green_prec, blue_prec));
 
        for (yy = 0; yy < height; yy++) {
-               s = srow;
                o = orow;
                for (xx = 0; xx < width; xx++) {
                        pixel = XGetPixel (image, xx, yy);
index 5adaccf283e3d784f212c1478a12dbe7ed29bf4e..6e0f36ecb717f43ee4c9b1c60c3699cd358bab95 100644 (file)
@@ -156,7 +156,7 @@ typedef struct
   GtkActionClass parent_class;
 } ToolMenuActionClass;
 
-G_DEFINE_TYPE(ToolMenuAction, tool_menu_action, GTK_TYPE_ACTION);
+G_DEFINE_TYPE(ToolMenuAction, tool_menu_action, GTK_TYPE_ACTION)
 
 static void
 tool_menu_action_class_init (ToolMenuActionClass *class)
index 375ccddb6679935a6545a05e4997822d2845e629..35a1331911ecc9d9e0bb6215654310a48071a85a 100644 (file)
@@ -165,9 +165,9 @@ event_after (GtkWidget *text_view,
   return FALSE;
 }
 
-gboolean hovering_over_link = FALSE;
-GdkCursor *hand_cursor = NULL;
-GdkCursor *regular_cursor = NULL;
+static gboolean hovering_over_link = FALSE;
+static GdkCursor *hand_cursor = NULL;
+static GdkCursor *regular_cursor = NULL;
 
 /* Looks at all tags covering the position (x, y) in the text view, 
  * and if one of them is a link, change the cursor to the "hands" cursor
@@ -179,12 +179,9 @@ set_cursor_if_appropriate (GtkTextView    *text_view,
                            gint            y)
 {
   GSList *tags = NULL, *tagp = NULL;
-  GtkTextBuffer *buffer;
   GtkTextIter iter;
   gboolean hovering = FALSE;
 
-  buffer = gtk_text_view_get_buffer (text_view);
-
   gtk_text_view_get_iter_at_location (text_view, &iter, x, y);
   
   tags = gtk_text_iter_get_tags (&iter);
index 04114fd6b0c7f0f17989157ce572062814800840..bcfc8c883a590297f803c372b98e55ae3649b35c 100644 (file)
@@ -66,7 +66,7 @@ configure_cb (GtkWidget *drawing_area, GdkEventConfigure *evt, gpointer data)
    return FALSE;
 }
 
-extern void pixbuf_init ();
+extern void pixbuf_init (void);
 
 int
 main (int argc, char **argv)
index f84ebc2f8a9647e68c217280fe057faf6ae4b62e..676171bb4392c41e8a06d9b8e13e01297c1db76a 100644 (file)
@@ -358,11 +358,11 @@ expose_func (GtkWidget *drawing_area, GdkEventExpose *event, gpointer data)
 static void
 config_func (GtkWidget *drawing_area, GdkEventConfigure *event, gpointer data)
 {
+#if 0
        GdkPixbuf *pixbuf;
     
        pixbuf = (GdkPixbuf *)g_object_get_data (G_OBJECT (drawing_area), "pixbuf");
 
-#if 0
        if (((event->width) != gdk_pixbuf_get_width (pixbuf)) ||
            ((event->height) != gdk_pixbuf_get_height (pixbuf)))
                gdk_pixbuf_scale (pixbuf, event->width, event->height);
@@ -504,7 +504,7 @@ progressive_updated_callback (GdkPixbufLoader* loader, guint x, guint y, guint w
 
 static int readlen = 4096;
 
-extern void pixbuf_init ();
+extern void pixbuf_init (void);
 
 void size_func (GdkPixbufLoader *loader, gint width, gint height, gpointer data)
 {
index 3cb1b1eae69cae2545258f1efcbdba8385bd9fc3..ef113785a9fc845163a015fe687752e823f9b382 100644 (file)
@@ -32,7 +32,7 @@ Freetype can be found at ftp://ftp.freetype.org
 
 Hardware requirements:
 ----------------------
-You need a graphics card with an availible framebuffer driver that can
+You need a graphics card with an available framebuffer driver that can
 run in 8, 16, 24 or 32 bpp. I use the matroxfb driver, but i.e. vesafb
 should work too. You also need a supported mouse. Currently supported
 is ps2 mouse, ms serial mouse and fidmour touchscreen.
@@ -44,7 +44,7 @@ First build and install glib and pango as usual, in that order.
 Then configure Gtk by running configure (or autogen.sh if running from
 cvs) with --with-gdktarget=linux-fb.
 
-Then compile as ususal: make; make install
+Then compile as usual: make; make install
 
 Fonts:
 ------
@@ -124,7 +124,7 @@ GDK_MOUSE_TYPE:
  Default is ps2.
 
 GDK_KEYBOARD_TYPE:
- Specify keyboard type. Currently suppored is
+ Specify keyboard type. Currently supported is
   xlate - normal tty mode keyboard.
     Quite limited, cannot detect key up/key down events. Doesn't
     handle ctrl/alt/shift for all keys. This is the default driver,
index ee78bea4f8c331f7290efe8964536085feab74d8..e50c8ca1ff057ccdf0f7895a2b55b963ae4df566 100644 (file)
@@ -6,7 +6,7 @@ programming for/with Gtk, having the spirit of a developers FAQ.
 It is also the correct place to list up things that programmers should
 care about in general.
 
-In the hope that this text might be usefull to someone,
+In the hope that this text might be useful to someone,
 
         - Tim Janik <timj@gimp.org>
           1998/02/11
@@ -43,7 +43,7 @@ GDK_SELECTION_CLEAR     GtkWidget::selection_clear_event
 GDK_FOCUS_CHANGE        GtkWidget::focus_in_event
                         GtkWidget::focus_out_event
 
-Events that are asured to have a valid GdkEvent.any.window field are
+Events that are assured to have a valid GdkEvent.any.window field are
 
 GDK_EXPOSE             GtkWidget::expose_event
 
@@ -61,7 +61,7 @@ Writing Gdk functions
 ---------------------
 
 When writing Gdk functions that operate on GdkWindow structures in any
-maeningfull sense, that is casting to a GdkWindowPrivate structure for
+meaningful sense, that is casting to a GdkWindowPrivate structure for
 access to fields other then GdkWindow.user_data, the programmer is
 recommended to check for the GdkWindowPrivate.destroyed field to be ==
 FALSE, especially if the GdkWindowPrivate.xwindow field is used.
index 46156dfdd90feb200a7efc467b061b81d2232b49..62312ef0fa0e74f9e18dc502ac9a9aabbc13bc99 100644 (file)
@@ -112,7 +112,7 @@ Retrieves the selection that will be used to communicate
 the data for the drag context (valid on both source
 and dest sides)
 
-Cursors and window heirarchies
+Cursors and window hierarchies
 ==============================
 
 The DND code, when possible (and it isn't possible over
@@ -123,7 +123,7 @@ the cursor is in _ourselves_ so we can ignore the
 drag icon properly. (Oh for OutputOnly windows!)
 
 To avoid obscene amounts of server traffic (which are only
-slighly observerable locally, but would really kill a
+slightly observable locally, but would really kill a
 session over a slow link), the code in GDK does
 XGetWindowAttributes for every child of the root window at
 the beginning of the drag, then selects with
index b06dbcd834de564940666959cba46f347f117617..03705309e1fef6b1a325093b3bb1b1dafed111a0 100644 (file)
@@ -1636,7 +1636,7 @@ int main(int argc, char *argv[])
   gtk_container_set_border_width(GTK_CONTAINER (window), 10);
 #endif
 
-  /* add a button to do something usefull */
+  /* add a button to do something useful */
   button = gtk_button_new_with_label("Fork me!");
           
   g_signal_connect(G_OBJECT (button), "clicked",
index 198263fc04cbdbb4d6069368ccefb6c69db10f8d..bc914ae0c0777c0baf10172c2d381131376c8826 100644 (file)
@@ -1323,7 +1323,7 @@ int main(int argc, char *argv[])
   gtk_container_set_border_width(GTK_CONTAINER (window), 10);
 #endif
 
-  /* add a button to do something usefull */
+  /* add a button to do something useful */
   button = gtk_button_new_with_label("Fork me!");
           
   gtk_signal_connect(GTK_OBJECT (button), "clicked",
index c0fcf08a4fa93d8f10a3194ed6e1f1a103e40bb0..f3576c180c44634e1049308686d63c2719c1162c 100644 (file)
@@ -97,7 +97,7 @@ F2, F3: together these are exactly the cases where we get
 
 F4: we get an LeaveNotify with the focus flag set. An
   LeaveNotify with a focus flag set will also be sent if 
-  F==W, so we have to to explicity test for that case
+  F==W, so we have to to explicitly test for that case
   using has_focus_window(W).
 
 
index 5ec2d83bea1a475f320a863e1b125e6e119ef1ab..bc47664cdf546dafdd29fade40fa6155727e132d 100644 (file)
@@ -107,7 +107,7 @@ makeenums.pl can be run into two modes:
 
  2) Generate the enumeration portion of gtk.defs.
 
-The enumearation portion is added to the boxed type 
+The enumeration portion is added to the boxed type 
 declarations in gtk-boxed.defs to create gtk.defs.
 
 The makeetypes.awk program takes the gtk.defs file, and
@@ -162,7 +162,7 @@ The possible types are:
             GtkDestroyNotify Notify)
 
 Some of these types map to multiple return values - these
-are marked above with the return types in parantheses.
+are marked above with the return types in parentheses.
 
 NOTES
 =====
@@ -170,7 +170,7 @@ NOTES
 When autogenerating GTK+ files, the autogenerated
 files are often rebuild resulting in the same result.
 
-To prevent unecessary rebuilds of the entire directory, some files
+To prevent unnecessary rebuilds of the entire directory, some files
 that multiple other source files depend on are not actually written
 to directly.  Instead, an intermediate file is written, which
 is then compared to the old file, and only if it is different
index c82b8d0c9bdc7074c9d7c07b6c779fff7f043d24..f168ec715d92c1e5ba5ed3ebc0ac18ba854b43f8 100644 (file)
@@ -1,7 +1,7 @@
 CONFIGURING PACKAGES TO WORK WITH GTK
 -------------------------------------
 
-Compiling a program succesfully against the GTK, GDK, and GLIB
+Compiling a program successfully against the GTK, GDK, and GLIB
 libraries can require a large number of command line options
 to your compiler and linker that are hard to guess correctly.
 The additional libraries required may, for example, depend on the
index 0c9de313360a70961fb18b9e4148ce9f045bbdd6..f8b62ed5e358d8093ff89bb876f2788847662611 100644 (file)
@@ -22,10 +22,10 @@ GtkObjects also provide the following functions:
 GdkWindow
 ---------
 
-A GdkWindow has to be explicitely destroyed with gdk_window_destroy.
+A GdkWindow has to be explicitly destroyed with gdk_window_destroy.
 This will send out a request to destroy this window and all its
 children, and will decrement the ref_count of the GdkWindow by one.
-Thus, it releases the inital reference created by gdk_window_new.
+Thus, it releases the initial reference created by gdk_window_new.
 
 All GdkWindows are kept in a hash table to translate from their XId to
 the actual structure and the pointer in the hash table is reflected in
@@ -62,7 +62,7 @@ GdkVisual
 ---------
 
 There are no *_new or *_destroy functions and the *_ref and *_unref
-functions are noops.  GdkVisuals are static structures and thus do not
+functions are no-ops.  GdkVisuals are static structures and thus do not
 need reference counting.  The ref counting functions are only there
 for extra defensive programming.
 
@@ -220,13 +220,13 @@ Then, when the user wants to get rid of the window:
   /* The GdkWindow of `window' and all its child GdkWindows are
    * destroyed.
    *
-   * window is unregistered from the loplevel list and its ref_count
-   * drops to zero.  The destroy code of `window' destroyes `option_menu'.
+   * window is unregistered from the toplevel list and its ref_count
+   * drops to zero.  The destroy code of `window' destroys `option_menu'.
    *
    * The destroy code of `option_menu' causes the `menu' to be detached
    * from it and its reference count drops to zero.
    *
-   * The destroy code of `menu' destroyes `menu_item'.
+   * The destroy code of `menu' destroys `menu_item'.
    *
    * The destruction of `menu_item' removes it from its parent, the
    * menu_item->ref_count drops to zero and `menu_item' is finalized (freed).
@@ -241,7 +241,7 @@ Taking care of proper referencing
 
 There are some cases where referencing of widgets from outside the toolkit
 (on the application side) is needed.
-Once the application performes an operation on a widget that will cause
+Once the application performs an operation on a widget that will cause
 its reference count to drop, if it wants to take further actions on the
 widget, it needs to hold a reference to it.
 
index a3f31c9456d131427fd97d926f07c75d599cec09..a081d3cdf4c2cc5bff3e12d1e672954a56b9f6d8 100644 (file)
@@ -26,11 +26,11 @@ gtk_widget_set_rc_style ()
   This will override a previously set user style or rc style.
 
 gtk_widget_reset_rc_styles ()
-  Descends through a widget heirarchy and sets the rc style
+  Descends through a widget hierarchy and sets the rc style
   on all widgets that don't have a user style set.
 
 gtk_widget_restore_default_style ()
-  Reset the widget's style to the default style, this is only usefull if
+  Reset the widget's style to the default style, this is only useful if
   the widgets default style had been saved by previous calls to
   gtk_widget_set_style() or gtk_widget_set_rc_style().
 
@@ -47,12 +47,12 @@ gtk_widget_set_name ()
 
 gtk_widget_realize ()
   Besides realizing the widget this function will:
-  - perform an rc lookup if neccessary,
+  - perform an rc lookup if necessary,
   - attach a widget's style.
 
 gtk_widget_get_style ()
   Return a widgets style, this function will perform an rc lookup
-  if neccessary.
+  if necessary.
 
 gtk_widget_set_parent ()
   This function will perform rc lookups recursively for all widgets
@@ -60,22 +60,22 @@ gtk_widget_set_parent ()
 
 gtk_style_copy ()
   This function can be used to copy a widget's style.
-  The style can subsequntly be changed (e.g., by modifications to the
+  The style can subsequently be changed (e.g., by modifications to the
   red/green/blue values of a certain color) and then be applied to the
   widget via gtk_widget_set_style().
 
 
 GtkWidget::style_set
   This signal will be emitted for a widget once its style changes with
-  an additional argument previous_style wich will hold the widget->style
-  avlue from a previous emission.
+  an additional argument previous_style which will hold the widget->style
+  value from a previous emission.
   The initial emission of this signal is guaranteed to happen prior
   to any GtkWidget::size_request emission, and will have the previous_style
   argument set to NULL.
   The GtkWidgetClass implements a default handler for this signal that
   will set the widget's window's background of widgets that provide their
   own windows according to the new style.
-  Derived widgets need to overide this default handler, if:
+  Derived widgets need to override this default handler, if:
   - their size requisition depends on the current style.
     (e.g., on the style's fonts)
   - they set the background of widget->window to something other than.
index 62ca6ba55b108f0d59dd1d4534bdd24624681e39..55b675eabcb696e75ff24df34282edb2e77bd1db 100644 (file)
@@ -18,7 +18,7 @@ complicated data structure exercise).  I'm happy to answer questions.
 High level description:
 
 There are several layers of data structure to the widget.  They are
-seperated from each other as much as possible.  The first is a gapped
+separated from each other as much as possible.  The first is a gapped
 text segment similar to the data structure Emacs uses for representing
 text.  Then there is a property list, which stores text properties for
 various ranges of text.  There is no direct relation between the text
@@ -93,7 +93,7 @@ transition.  An important point is that all property marks are invalid
 after a buffer modification unless care is taken to keep them
 accurate.  That is the difficulty of the insert and delete operations,
 because as the next section describes, line data is cached and by
-neccesity contains text property marks.  The functions for operating
+necessity contains text property marks.  The functions for operating
 and computing property marks are:
 
  void advance_mark     (GtkPropertyMark* mark);
@@ -117,8 +117,8 @@ of the file for doing things like getting the current text property,
 or some component of the current property.  See the MARK_* macros.
 
 Next there is a LineParams structure which contains all the
-information neccesary to draw one line of text on screen.  When I say
-"line" here, I do not mean one line of text seperated by newlines,
+information necessary to draw one line of text on screen.  When I say
+"line" here, I do not mean one line of text separated by newlines,
 rather I mean one row of text on screen.  It is a matter of policy how
 visible lines are chosen and there are currently two policies,
 line-wrap and no-line-wrap.  I suspect it would not be difficult to
@@ -167,7 +167,7 @@ often, the last index is treated as a newline.
   is, its properties are always that of the preceding character,
   if any.
   
-  There is a fair bit of special case code to mantain this condition -
+  There is a fair bit of special case code to maintain this condition -
   which is needed so that user has control over the properties of
   characters inserted at the last position. OWT 2/9/98 ]
 
@@ -268,7 +268,7 @@ visible lines:
   guint first_onscreen_ver_pixel;
 
 LINE_START_CACHE is a doubly linked list of LineParams.  CURRENT_LINE
-is a transient piece of data which is set in varoius places such as
+is a transient piece of data which is set in various places such as
 the mouse click code.  Generally, it is the line on which the cursor
 property mark CURSOR_MARK is on.  LINE_START_CACHE points to the first
 visible line and may contain PREV pointers if the cached data of
@@ -331,7 +331,7 @@ The text properties list:
   GList *text_properties_end;
 
 A scratch area used for constructing a contiguous piece of the buffer
-which may otherwise span the gap.  It is not strictly neccesary
+which may otherwise span the gap.  It is not strictly necessary
 but simplifies the drawing code because it does not need to deal with
 the gap.
 
@@ -408,7 +408,7 @@ copy area call.  If the CURSOR argument to EXPOSE_TEXT is true, it
 also draws the cursor.
 
 The function DRAW_LINE draws a single line, doing all the tab and
-color computations neccesary.  The function DRAW_LINE_WRAP draws the
+color computations necessary.  The function DRAW_LINE_WRAP draws the
 line wrap bitmap at the end of the line if it wraps.  TEXT_EXPOSE will
 expand the cached line data list if it has to by calling
 FETCH_LINES_FORWARD.  The functions DRAW_CURSOR and UNDRAW_CURSOR draw
@@ -427,12 +427,12 @@ RECOMPUTE_GEOMETRY is called when the geometry of the window changes
 or when it is first drawn.  This is probably not done right.  My
 biggest weakness in writing this code is that I've never written a
 widget before so I got most of the event handling stuff wrong as far
-as Gtk is concerned.  Fortunatly, most of the code is unrelated and
+as Gtk is concerned.  Fortunately, most of the code is unrelated and
 simply an exercise in data structure manipulation.
 
 Scrolling:
 
-Scrolling is fairly straighforward.  It looks at the top line, and
+Scrolling is fairly straightforward.  It looks at the top line, and
 advances it pixel by pixel until the FIRST_CUT_PIXELS equals the line
 height and then advances the LINE_START_CACHE.  When it runs out of
 lines it fetches more.  The function SCROLL_INT is used to scroll from
@@ -454,7 +454,7 @@ character.  It's fairly complicated.  In order to do efficient pasting
 into the buffer, or write code that modifies the buffer while the
 buffer is drawn, it needs to do multiple characters at at time.  This
 is the hardest part of what remains.  Currently, gtk_text_insert does
-not reexpose the modified lines.  It needs to.  Pete did this wrong at
+not re-expose the modified lines.  It needs to.  Pete did this wrong at
 one point and I disabled modification completely, I don't know what
 the current state of things are.  The functions
 INSERT_CHAR_LINE_EXPOSE and DELETE_CHAR_LINE_EXPOSE do the work.
@@ -477,7 +477,7 @@ Here's pseudo code for insert.  Delete is quite similar.
 
 What needs to be done:
 
-Horizintal scrolling, robustness, testing, selection handling.  If you
+Horizontal scrolling, robustness, testing, selection handling.  If you
 want to work in the text widget pay attention to the debugging
 facilities I've written at the end of gtktext.c.  I'm sorry I waited
 so long to try and pass this off.  I'm super busy with school and
index eb7dce32d2522ce41f2cbeccf2b470b5e0ecb61e..e60ac32d8ddd04628f0e5186ba633da72c7ddfad 100644 (file)
@@ -45,7 +45,7 @@ GtkObject:
 GTK_DESTROYED:
        This flagged is set for a GtkObject right before its
        destruction code is executed. Its main use is the
-       prevention of multiple destruction invokations.
+       prevention of multiple destruction invocations.
        
 GTK_FLOATING:
        This flag reflects the fact that the holder of the
@@ -94,7 +94,7 @@ GTK_CHILD_VISIBLE
         and visible. Containers like GtkNotebook use this flag.
         A private flag, not a public flag, so if you need to check
         this flag, you should call gtk_widget_get_child_visible().
-        (Should be very rarely necesary.)
+        (Should be very rarely necessary.)
 
 GTK_SENSITIVE:
        Set and unset by gtk_widget_set_sensitive.
@@ -155,7 +155,7 @@ GtkWidget, private flags:
 GTK_USER_STYLE:
        A widget is flagged to have a user style, once gtk_widget_set_style
        has been invoked for it. The use of this flag is to tell widgets
-       wich share a global user style from the ones which got a certain
+       which share a global user style from the ones which got a certain
        style assign from outside the toolkit.
        
 GTK_RESIZE_PENDING:
@@ -163,7 +163,7 @@ GTK_RESIZE_PENDING:
        [some of the code should move to gtkcontainer.c therefore]
        Relies on GTK_WIDGET_REALIZED(widget)
        [this is not really enforced throughout the code, but should
-        be. it only requires a few checks for GTK_WIDGET_RELIZED and
+        be. it only requires a few checks for GTK_WIDGET_REALIZED and
         minor changes to gtk_widget_unrealize, we can then remove the check
         in gtk_widget_real_destroy]
        Means: there is an idle handler waiting for the container to
@@ -176,7 +176,7 @@ GTK_RESIZE_NEEDED:
         can be avoided]
        Means: a widget has been added to the resize_widgets list of
        its _toplevel_ container (keep this in mind for GtkViewport).
-       Remark: this flag is also used internaly by gtkwindow.c during
+       Remark: this flag is also used internally by gtkwindow.c during
        the evaluation of resizing worthy widgets.
 
 GTK_LEAVE_PENDING:
@@ -200,7 +200,7 @@ GTK_NEED_REQUEST:
        requisition. If this flag is set, we must actually emit ::size-request
         when gtk_widget_size_request() is called. Otherwise, we can
         simply widget->requisition. We keep track of this all the time
-        howevever, widgets with this flag set are only added to the resize 
+        however, widgets with this flag set are only added to the resize 
        queue if they are viewable.
 
 GTK_NEED_ALLOCATION:
@@ -291,7 +291,7 @@ gtk_widget_destroy:
 
 gtk_widget_realize:
  if !GTK_DESTROYED sets GTK_REALIZED
-- Calling gtk_widget_realize when the widget is not a descendent
+- Calling gtk_widget_realize when the widget is not a descendant
   of a toplevel is an ERROR.
 
 gtk_container_add (container, widget) [ and container-specific variants ]
@@ -358,7 +358,7 @@ Widgets are created in an unrealized state.
 The Realize signal
 ------------------
 
-When a widget recieves the "realize" signal it should:
+When a widget receives the "realize" signal it should:
 
  NO_WINDOW widgets: (probably OK to use default handler)
 
@@ -454,7 +454,7 @@ When a widget receives the destroy signal, it must:
 
 The "destroy" signal will only be received once. A widget
 will never receive any other signals after the destroy
-signal (but see the sectionalize on "Finalize" below)
+signal (but see the section on "Finalize" below)
 
 The widget must handle calls to all publically accessible
 functions in an innocuous manner even after a "destroy"
index 4e21553d5ca1d78b84b496cbbcb56858c9dfcc6b..b8c7bbffe2ae001d24b1c03f444c79fddb2990fd 100644 (file)
@@ -272,7 +272,7 @@ print_blurb (FILE    *bout,
   if (!print_help)
     {
       g_fprintf (bout, "%s version ", PRG_NAME);
-      g_fprintf (bout, "%u.%u.%u", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
+      g_fprintf (bout, "%d.%d.%d", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
       g_fprintf (bout, "\n");
       g_fprintf (bout, "%s comes with ABSOLUTELY NO WARRANTY.\n", PRG_NAME);
       g_fprintf (bout, "You may redistribute copies of %s under the terms of\n", PRG_NAME);
index 266d20eb44492407a9773f63570297a67ae7c23b..024bac9d5f02084230e5f7a86a3756d730a59863 100644 (file)
@@ -737,7 +737,7 @@ gdk_pixdata_to_csource (GdkPixdata        *pixdata,
              cdata.static_prefix, cdata.const_prefix, name);
       APPEND (gstring, "  0x%x, /* Pixbuf magic: 'GdkP' */\n",
              GDK_PIXBUF_MAGIC_NUMBER);
-      APPEND (gstring, "  %u + %lu, /* header length + pixel_data length */\n",
+      APPEND (gstring, "  %d + %lu, /* header length + pixel_data length */\n",
              GDK_PIXDATA_HEADER_LENGTH,
              rle_encoded ? (glong)(img_buffer_end - img_buffer) : (glong)rowstride * height);
       APPEND (gstring, "  0x%x, /* pixdata_type */\n",
@@ -779,7 +779,7 @@ gdk_pixdata_to_csource (GdkPixdata        *pixdata,
       cdata.pos = 3;
       save_uchar (&cdata, *img_buffer++); save_uchar (&cdata, *img_buffer++);
       save_uchar (&cdata, *img_buffer++); save_uchar (&cdata, *img_buffer++);
-      APPEND (gstring, "\"\n  /* length: header (%u) + pixel_data (%u) */\n  \"",
+      APPEND (gstring, "\"\n  /* length: header (%d) + pixel_data (%u) */\n  \"",
              GDK_PIXDATA_HEADER_LENGTH,
              rle_encoded ? pix_length : rowstride * height);
       cdata.pos = 3;
index 0c1891ba47524efb4a54ec0babb38272b44582d9..bec11f0d2489cc32c3defe9bd4d4e0bf0e0e3663 100644 (file)
@@ -127,7 +127,7 @@ write_loader_info (const char *path, GdkPixbufFormat *info)
        char **ext; 
 
        g_printf("\"%s\"\n", path);
-       g_printf ("\"%s\" %d \"%s\" \"%s\"\n", 
+       g_printf ("\"%s\" %u \"%s\" \"%s\"\n", 
                  info->name, info->flags, 
                  info->domain ? info->domain : GETTEXT_PACKAGE, info->description);
        for (mime = info->mime_types; *mime; mime++) {
index 7eda3041e45a95b65eaded257a60c9568dcf4b7f..eeefd2e8878992a9058b569be718651946e1817e 100644 (file)
@@ -178,11 +178,9 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
 {
   GObjectClass *object_class;
   GtkWidgetClass *widget_class;
-  GtkDialogClass *dialog_class;
        
   object_class = (GObjectClass *)klass;
   widget_class = (GtkWidgetClass *)klass;
-  dialog_class = (GtkDialogClass *)klass;
        
   object_class->set_property = gtk_about_dialog_set_property;
   object_class->get_property = gtk_about_dialog_get_property;
@@ -1752,12 +1750,9 @@ set_cursor_if_appropriate (GtkAboutDialog *about,
 {
   GtkAboutDialogPrivate *priv = (GtkAboutDialogPrivate *)about->private_data;
   GSList *tags = NULL, *tagp = NULL;
-  GtkTextBuffer *buffer;
   GtkTextIter iter;
   gboolean hovering_over_link = FALSE;
 
-  buffer = gtk_text_view_get_buffer (text_view);
-
   gtk_text_view_get_iter_at_location (text_view, &iter, x, y);
   
   tags = gtk_text_iter_get_tags (&iter);
index 265585ed633c4af0c646ee7f485d4014c59698d6..4756035ae27fb3eca6a8e9ca99b6c29ed980d436 100644 (file)
@@ -37,7 +37,6 @@
 #ifdef G_OS_WIN32
 #include <io.h>
 #endif
-#include <errno.h>
 
 
 /* --- structures --- */
index 630159b3a2ae8ad3e4797d1b83ecbcb0fde4b92d..8c89b61138c06ba2e60fa4528e01be79a61ba69f 100644 (file)
@@ -774,10 +774,6 @@ connect_proxy (GtkAction     *action,
        }
       else 
        {
-         GtkWidget *image;
-
-         image = gtk_button_get_image (GTK_BUTTON (proxy));
-
          if (GTK_BIN (proxy)->child == NULL || 
              GTK_IS_LABEL (GTK_BIN (proxy)->child))
            {
@@ -1527,8 +1523,6 @@ gtk_action_set_icon_name (GtkAction   *action,
       else if (GTK_IS_BUTTON (proxy) &&
               !gtk_button_get_use_stock (GTK_BUTTON (proxy)))
        {
-         GtkWidget *image;
-
          image = gtk_button_get_image (GTK_BUTTON (proxy));
          
          if (GTK_IS_IMAGE (image) &&
index 9451107a0da12232d4ea674e14c5c039def7628b..bb9d03b10d420d27f256f89e6591b32e7a464f4b 100644 (file)
@@ -1780,14 +1780,12 @@ gtk_assistant_set_page_title (GtkAssistant *assistant,
                              GtkWidget    *page,
                              const gchar  *title)
 {
-  GtkAssistantPrivate *priv;
   GtkAssistantPage *page_info;
   GList *child;
 
   g_return_if_fail (GTK_IS_ASSISTANT (assistant));
   g_return_if_fail (GTK_IS_WIDGET (page));
 
-  priv = assistant->priv;
   child = find_page (assistant, page);
 
   g_return_if_fail (child != NULL);
@@ -1814,14 +1812,12 @@ G_CONST_RETURN gchar*
 gtk_assistant_get_page_title (GtkAssistant *assistant,
                              GtkWidget    *page)
 {
-  GtkAssistantPrivate *priv;
   GtkAssistantPage *page_info;
   GList *child;
 
   g_return_val_if_fail (GTK_IS_ASSISTANT (assistant), NULL);
   g_return_val_if_fail (GTK_IS_WIDGET (page), NULL);
 
-  priv = assistant->priv;
   child = find_page (assistant, page);
 
   g_return_val_if_fail (child != NULL, NULL);
@@ -1889,14 +1885,12 @@ GtkAssistantPageType
 gtk_assistant_get_page_type (GtkAssistant *assistant,
                             GtkWidget    *page)
 {
-  GtkAssistantPrivate *priv;
   GtkAssistantPage *page_info;
   GList *child;
 
   g_return_val_if_fail (GTK_IS_ASSISTANT (assistant), GTK_ASSISTANT_PAGE_CONTENT);
   g_return_val_if_fail (GTK_IS_WIDGET (page), GTK_ASSISTANT_PAGE_CONTENT);
 
-  priv = assistant->priv;
   child = find_page (assistant, page);
 
   g_return_val_if_fail (child != NULL, GTK_ASSISTANT_PAGE_CONTENT);
@@ -1971,14 +1965,12 @@ GdkPixbuf*
 gtk_assistant_get_page_header_image (GtkAssistant *assistant,
                                     GtkWidget    *page)
 {
-  GtkAssistantPrivate *priv;
   GtkAssistantPage *page_info;
   GList *child;
 
   g_return_val_if_fail (GTK_IS_ASSISTANT (assistant), NULL);
   g_return_val_if_fail (GTK_IS_WIDGET (page), NULL);
 
-  priv = assistant->priv;
   child = find_page (assistant, page);
 
   g_return_val_if_fail (child != NULL, NULL);
@@ -2053,14 +2045,12 @@ GdkPixbuf*
 gtk_assistant_get_page_side_image (GtkAssistant *assistant,
                                   GtkWidget    *page)
 {
-  GtkAssistantPrivate *priv;
   GtkAssistantPage *page_info;
   GList *child;
 
   g_return_val_if_fail (GTK_IS_ASSISTANT (assistant), NULL);
   g_return_val_if_fail (GTK_IS_WIDGET (page), NULL);
 
-  priv = assistant->priv;
   child = find_page (assistant, page);
 
   g_return_val_if_fail (child != NULL, NULL);
@@ -2128,14 +2118,12 @@ gboolean
 gtk_assistant_get_page_complete (GtkAssistant *assistant,
                                 GtkWidget    *page)
 {
-  GtkAssistantPrivate *priv;
   GtkAssistantPage *page_info;
   GList *child;
 
   g_return_val_if_fail (GTK_IS_ASSISTANT (assistant), FALSE);
   g_return_val_if_fail (GTK_IS_WIDGET (page), FALSE);
 
-  priv = assistant->priv;
   child = find_page (assistant, page);
 
   g_return_val_if_fail (child != NULL, FALSE);
index 9b7d78b1958f1c0c93e9e5826f802dcae8df6360..4c51a47d68493229109b4033cdc053f5a8f2eb7a 100644 (file)
@@ -1910,7 +1910,7 @@ gtk_button_screen_changed (GtkWidget *widget,
 
   show_image_connection =
     g_signal_connect (settings, "notify::gtk-button-images",
-                     G_CALLBACK (gtk_button_setting_changed), 0);
+                     G_CALLBACK (gtk_button_setting_changed), NULL);
   g_object_set_data (G_OBJECT (settings), 
                     I_("gtk-button-connection"),
                     GUINT_TO_POINTER (show_image_connection));
index 3effc22b92447f998e27c4f9a8e36c70d2318384..eb97c1f8e0586c1b731965bc6e198dfcec5800e3 100644 (file)
@@ -55,7 +55,6 @@
 #include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkprivate.h"
-#include "gtkintl.h"
 #include "gdk/gdkkeysyms.h"
 #include "gtkalias.h"
 
index c2e3e2337978e7f29413dfb3b425827c1bcdb4ad..31b70c3e7e148538aeed563a81703cae91396555 100644 (file)
@@ -357,10 +357,8 @@ gtk_cell_renderer_accel_set_property  (GObject      *object,
 
   if (changed)
     {
-      GtkCellRendererText *celltext;
       gchar *text;
 
-      celltext = GTK_CELL_RENDERER_TEXT (accel);
       text = convert_keysym_state_to_string (accel, accel->accel_key, accel->accel_mods, accel->keycode);
       g_object_set (accel, "text", text, NULL);
       g_free (text);
@@ -519,7 +517,7 @@ typedef GtkEventBoxClass GtkCellEditableEventBoxClass;
 
 G_DEFINE_TYPE_WITH_CODE (GtkCellEditableEventBox, _gtk_cell_editable_event_box, GTK_TYPE_EVENT_BOX, { \
     G_IMPLEMENT_INTERFACE (GTK_TYPE_CELL_EDITABLE, _gtk_cell_editable_event_box_cell_editable_init)   \
-      });
+      })
 
 
 static void
index 1723c87780cb910d01eb4af13265db82e5e408af..76fea367c3c2d1e8944aaf1a87fe7c8d32b1ecf8 100644 (file)
@@ -439,7 +439,7 @@ gtk_cell_renderer_pixbuf_create_named_icon_pixbuf (GtkCellRendererPixbuf *cellpi
                                          priv->stock_size,
                                          &width, &height))
     {
-      g_warning ("Invalid icon size %d\n", priv->stock_size);
+      g_warning ("Invalid icon size %u\n", priv->stock_size);
       width = height = 24;
     }
 
index 9b21d3258e6c7b9b9bd3d547649582802a469b2e..f9a2433f665533585c71ea8eec2c26f857fe27b4 100644 (file)
@@ -55,7 +55,6 @@
 #include "gtkmenuitem.h"
 #include "gtkmain.h"
 #include "gtksettings.h"
-#include "gtkimage.h"
 #include "gtkstock.h"
 #include "gtkaccessible.h"
 #include "gtkprivate.h"
index 6a78b7f875a0405c486671c156ba39980c42055d..5dd45e470c4a9d400418b248f38f42b3413fda09 100644 (file)
@@ -50,7 +50,7 @@
 #include "gtkintl.h"
 #include "gtkalias.h"
 
-const gchar gtk_combo_string_key[] = "gtk-combo-string-value";
+static const gchar gtk_combo_string_key[] = "gtk-combo-string-value";
 
 #define COMBO_LIST_MAX_HEIGHT  (400)
 #define        EMPTY_LIST_HEIGHT       (15)
@@ -561,7 +561,7 @@ gtk_combo_popup_list (GtkCombo *combo)
     {
       gtk_window_group_add_window (gtk_window_get_group (GTK_WINDOW (toplevel)), 
                                    GTK_WINDOW (combo->popwin));
-      gtk_window_set_transient_for (combo->popwin, GTK_WINDOW (toplevel));
+      gtk_window_set_transient_for (GTK_WINDOW (combo->popwin), GTK_WINDOW (toplevel));
     }
 
   gtk_widget_set_size_request (combo->popwin, width, height);
index 0b14e41e62217eef1c5965b7ce302b632f3e7c5e..efcfaa82948fc6482df096fb211f6fa507e0e2ec 100644 (file)
@@ -3671,7 +3671,6 @@ gtk_combo_box_list_key_press (GtkWidget   *widget,
   if (event->keyval == GDK_Return || event->keyval == GDK_KP_Enter ||
       event->keyval == GDK_space || event->keyval == GDK_KP_Space) 
   {
-    GtkTreeIter iter;
     GtkTreeModel *model = NULL;
     
     gtk_combo_box_popdown (combo_box);
index d5c4a6c4d089f08a85e31f888afd26b850349902..73604d305cd6e94ecd15c4d9157a8774c7407069 100644 (file)
@@ -1618,7 +1618,6 @@ draw_row (GtkCList     *clist,
 {
   GtkWidget *widget;
   GtkCTree  *ctree;
-  GdkRectangle *rect;
   GdkRectangle *crect;
   GdkRectangle row_rectangle;
   GdkRectangle cell_rectangle; 
@@ -1680,7 +1679,6 @@ draw_row (GtkCList     *clist,
   /* draw the cell borders */
   if (area)
     {
-      rect = &intersect_rectangle;
       crect = &intersect_rectangle;
 
       if (gdk_rectangle_intersect (area, &cell_rectangle, crect))
@@ -1690,7 +1688,6 @@ draw_row (GtkCList     *clist,
     }
   else
     {
-      rect = &clip_rectangle;
       crect = &cell_rectangle;
 
       gdk_draw_rectangle (clist->clist_window,
@@ -2515,7 +2512,6 @@ real_tree_expand (GtkCTree     *ctree,
   GtkCTreeNode *work;
   GtkRequisition requisition;
   gboolean visible;
-  gint level;
 
   g_return_if_fail (GTK_IS_CTREE (ctree));
 
@@ -2527,7 +2523,6 @@ real_tree_expand (GtkCTree     *ctree,
   GTK_CLIST_GET_CLASS (clist)->resync_selection (clist, NULL);
 
   GTK_CTREE_ROW (node)->expanded = TRUE;
-  level = GTK_CTREE_ROW (node)->level;
 
   visible = gtk_ctree_is_viewable (ctree, node);
   /* get cell width if tree_column is auto resized */
@@ -3513,7 +3508,6 @@ ctree_is_hot_spot (GtkCTree     *ctree,
 {
   GtkCTreeRow *tree_row;
   GtkCList *clist;
-  GtkCellPixText *cell;
   gint xl;
   gint yu;
   
@@ -3528,8 +3522,6 @@ ctree_is_hot_spot (GtkCTree     *ctree,
 
   tree_row = GTK_CTREE_ROW (node);
 
-  cell = GTK_CELL_PIXTEXT (tree_row->row.cell[ctree->tree_column]);
-
   yu = (ROW_TOP_YPIXEL (clist, row) + (clist->row_height - PM_SIZE) / 2 -
        (clist->row_height - 1) % 2);
 
@@ -3852,9 +3844,6 @@ gtk_ctree_remove_node (GtkCTree     *ctree,
 
   if (node)
     {
-      gboolean visible;
-
-      visible = gtk_ctree_is_viewable (ctree, node);
       gtk_ctree_unlink (ctree, node, TRUE);
       gtk_ctree_post_recursive (ctree, node, GTK_CTREE_FUNC (tree_delete),
                                NULL);
@@ -4103,7 +4092,7 @@ gtk_ctree_node_nth (GtkCTree *ctree,
 {
   g_return_val_if_fail (GTK_IS_CTREE (ctree), NULL);
 
-  if ((row < 0) || (row >= GTK_CLIST(ctree)->rows))
+  if ((row >= GTK_CLIST(ctree)->rows))
     return NULL;
  
   return GTK_CTREE_NODE (g_list_nth (GTK_CLIST (ctree)->row_list, row));
index 469519a35e2b981b0eaf30d40bc62805b1867c99..fd7a269e5680cad3aa22cd935340c0317b23b8b1 100644 (file)
@@ -794,7 +794,7 @@ gtk_curve_reset (GtkCurve *c)
 void
 gtk_curve_set_gamma (GtkCurve *c, gfloat gamma)
 {
-  gfloat x, one_over_gamma, height, one_over_width;
+  gfloat x, one_over_gamma, height;
   GtkCurveType old_type;
   gint i;
 
@@ -808,7 +808,6 @@ gtk_curve_set_gamma (GtkCurve *c, gfloat gamma)
     one_over_gamma = 1.0;
   else
     one_over_gamma = 1.0 / gamma;
-  one_over_width = 1.0 / (c->num_points - 1);
   height = c->height;
   for (i = 0; i < c->num_points; ++i)
     {
index 71376c6d54485277997933594c1aed693b708935..eaa95ddc692be7f33a70db78f6e3f21699b69e0f 100644 (file)
@@ -3109,7 +3109,7 @@ gtk_drag_set_icon_pixmap (GdkDragContext    *context,
   gtk_widget_push_colormap (colormap);
 
   window = gtk_window_new (GTK_WINDOW_POPUP);
-  gtk_window_set_type_hint (window, GDK_WINDOW_TYPE_HINT_DND);
+  gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_DND);
   gtk_window_set_screen (GTK_WINDOW (window), screen);
   set_can_change_screen (window, FALSE);
   gtk_widget_set_events (window, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
index e779cf3c16b179745da2e8ff4a143bf77ed21e76..474b65764fb3a46ce9821e1b3ad5c1fbf3541477 100644 (file)
@@ -832,7 +832,7 @@ gtk_entry_completion_action_button_press (GtkWidget      *widget,
   if (!GTK_WIDGET_MAPPED (completion->priv->popup_window))
     return FALSE;
 
-  _gtk_entry_reset_im_context (completion->priv->entry);
+  _gtk_entry_reset_im_context (GTK_ENTRY (completion->priv->entry));
 
   if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (widget),
                                      event->x, event->y,
index 828106c6785482ddcaf9d41de4c9f576c20ad5b8..fd0cdb4b5c4056a5d78dd14244887e6c22aadcf7 100644 (file)
@@ -219,7 +219,7 @@ static void     gtk_file_chooser_button_drag_data_received (GtkWidget        *wi
                                                            gint              x,
                                                            gint              y,
                                                            GtkSelectionData *data,
-                                                           guint             info,
+                                                           guint             type,
                                                            guint             drag_time);
 static void     gtk_file_chooser_button_show_all           (GtkWidget        *widget);
 static void     gtk_file_chooser_button_hide_all           (GtkWidget        *widget);
@@ -1033,7 +1033,7 @@ gtk_file_chooser_button_drag_data_received (GtkWidget          *widget,
                                            gint              x,
                                            gint              y,
                                            GtkSelectionData *data,
-                                           guint             info,
+                                           guint             type,
                                            guint             drag_time)
 {
   GtkFileChooserButton *button = GTK_FILE_CHOOSER_BUTTON (widget);
@@ -1045,13 +1045,13 @@ gtk_file_chooser_button_drag_data_received (GtkWidget        *widget,
     (*GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->drag_data_received) (widget,
                                                                                    context,
                                                                                    x, y,
-                                                                                   data, info,
+                                                                                   data, type,
                                                                                    drag_time);
 
   if (widget == NULL || context == NULL || data == NULL || data->length < 0)
     return;
 
-  switch (info)
+  switch (type)
     {
     case TEXT_URI_LIST:
       {
index 095a8b40d4793bc828a6ef15c89e9b99faeaccf3..d834c63d18d01f5ee9aabacc0b8a26d093e18189 100644 (file)
@@ -26,7 +26,6 @@
 #include "gtkcelllayout.h"
 #include "gtkcellrendererpixbuf.h"
 #include "gtkcellrenderertext.h"
-#include "gtkcellrenderertext.h"
 #include "gtkcheckmenuitem.h"
 #include "gtkclipboard.h"
 #include "gtkcombobox.h"
index 4beaf1a7918d865a4641d096e892d779e67f8fd8..919da3469148a76218f035e2fba45e882add6867 100644 (file)
@@ -646,8 +646,6 @@ out:
 static gboolean
 load_directory_callback (GtkFileChooserEntry *chooser_entry)
 {
-  GSList *child_paths = NULL;
-
   GDK_THREADS_ENTER ();
 
   chooser_entry->load_directory_idle = 0;
index dcd769220b5539ba2171b0ab95febbafe3544683..1644eccf970ee7e682305ed0f73f4fc1b6135cd1 100644 (file)
@@ -346,7 +346,7 @@ parse_config (GtkFileChooserSettings *settings,
              const char *contents,
              GError **error)
 {
-  GMarkupParser parser = { 0, };
+  GMarkupParser parser = { NULL, };
   GMarkupParseContext *context;
   struct parse_state state;
   gboolean retval;
index 23b24c01a14f3728a10334dab4c7dbbf089ee97f..2496c56f1a8d811904536ebe540193b72c2b26c6 100644 (file)
@@ -833,8 +833,8 @@ gtk_file_system_unix_get_info (GtkFileSystem                *file_system,
   handle = create_handle (file_system);
 
   filename = gtk_file_path_get_string (path);
-  g_return_val_if_fail (filename != NULL, FALSE);
-  g_return_val_if_fail (g_path_is_absolute (filename), FALSE);
+  g_return_val_if_fail (filename != NULL, NULL);
+  g_return_val_if_fail (g_path_is_absolute (filename), NULL);
 
   if (!stat_with_error (filename, &statbuf, &error))
     {
@@ -1042,8 +1042,8 @@ gtk_file_system_unix_create_folder (GtkFileSystem                     *file_syst
   system_unix = GTK_FILE_SYSTEM_UNIX (file_system);
 
   filename = gtk_file_path_get_string (path);
-  g_return_val_if_fail (filename != NULL, FALSE);
-  g_return_val_if_fail (g_path_is_absolute (filename), FALSE);
+  g_return_val_if_fail (filename != NULL, NULL);
+  g_return_val_if_fail (g_path_is_absolute (filename), NULL);
 
   handle = create_handle (file_system);
 
index bb41e5da532145bb8d1581d6989e09c0b301b27a..fc1bd49c8001efeaecc1a4a994ffb8d85ad93021 100644 (file)
@@ -540,7 +540,7 @@ gtk_handle_box_size_request (GtkWidget      *widget,
     }
 
   /* if our child is not visible, we still request its size, since we
-   * won't have any usefull hint for our size otherwise.
+   * won't have any useful hint for our size otherwise.
    */
   if (bin->child)
     gtk_widget_size_request (bin->child, &child_requisition);
index 4e4e7b655fd523710603e242ff5ab85fac4b530f..a15d8d39c329fa0349275b277ab282bb763916f1 100644 (file)
@@ -433,7 +433,7 @@ _gtk_icon_cache_get_icon (GtkIconCache *cache,
   if (type != 0)
     {
       GTK_NOTE (ICONTHEME,
-               g_print ("invalid pixel data type %d\n", type));
+               g_print ("invalid pixel data type %u\n", type));
       return NULL;
     }
 
index 4c04b9379048eed054bde8ad10678542a055f466..0cc2cb1132d6252341ddb34f733ebd786af9af06 100644 (file)
@@ -1020,7 +1020,7 @@ gtk_icon_size_register_alias (const gchar *alias,
   init_icon_sizes ();
 
   if (!icon_size_lookup_intern (NULL, target, NULL, NULL))
-    g_warning ("gtk_icon_size_register_alias: Icon size %d does not exist", target);
+    g_warning ("gtk_icon_size_register_alias: Icon size %u does not exist", target);
 
   ia = g_hash_table_lookup (icon_aliases, alias);
   if (ia)
@@ -1453,7 +1453,7 @@ render_icon_name_pixbuf (GtkIconSource    *icon_source,
        }
       else
        {
-         g_warning ("Invalid icon size %d\n", size);
+         g_warning ("Invalid icon size %u\n", size);
          width = height = 24;
        }
     }
index 92270bc459dfb13ad9eb8995174c250a73d80d95..cb96772260e1526e5a73e8a198c2c97ccc0ce841 100644 (file)
@@ -875,7 +875,7 @@ insert_theme (GtkIconTheme *icon_theme, const char *theme_name)
   char **dirs;
   char **themes;
   GtkIconThemePrivate *priv;
-  IconTheme *theme;
+  IconTheme *theme = NULL;
   char *path;
   GKeyFile *theme_file;
   GError *error = NULL;
@@ -1855,7 +1855,7 @@ theme_dir_get_icon_suffix (IconThemeDir *dir,
     suffix = GPOINTER_TO_UINT (g_hash_table_lookup (dir->icons, icon_name));
 
   GTK_NOTE (ICONTHEME, 
-           g_print ("get_icon_suffix%s %d\n", dir->cache ? " (cached)" : "", suffix));
+           g_print ("get_icon_suffix%s %u\n", dir->cache ? " (cached)" : "", suffix));
 
   return suffix;
 }
index 2991ef561515862fa63459801fb397bf356977b4..9e066cf938504165ea88c150f8f408184e1734e7 100644 (file)
@@ -8539,7 +8539,6 @@ gtk_icon_view_accessible_model_rows_reordered (GtkTreeModel *tree_model,
 {
   GtkIconViewAccessiblePrivate *priv;
   GtkIconViewItemAccessibleInfo *info;
-  GtkIconViewAccessible *view;
   GtkIconView *icon_view;
   GtkIconViewItemAccessible *item;
   GList *items;
@@ -8547,7 +8546,6 @@ gtk_icon_view_accessible_model_rows_reordered (GtkTreeModel *tree_model,
 
   atk_obj = gtk_widget_get_accessible (GTK_WIDGET (user_data));
   icon_view = GTK_ICON_VIEW (user_data);
-  view = GTK_ICON_VIEW_ACCESSIBLE (atk_obj);
   priv = gtk_icon_view_accessible_get_priv (atk_obj);
 
   items = priv->items;
@@ -8923,7 +8921,6 @@ gtk_icon_view_accessible_is_child_selected (AtkSelection *selection,
   GtkWidget *widget;
   GtkIconView *icon_view;
   GtkIconViewItem *item;
-  GList *l;
 
   widget = GTK_ACCESSIBLE (selection)->widget;
   if (widget == NULL)
index 500b9ad35b2d49fc6fd7d1a9cdf468d870ead958..2adc9d9b33b1e4dffa834559ca7457028e857007 100644 (file)
@@ -616,7 +616,7 @@ gtk_image_menu_item_screen_changed (GtkWidget *widget,
 
   show_image_connection =
     g_signal_connect (settings, "notify::gtk-menu-images",
-                     G_CALLBACK (gtk_image_menu_item_setting_changed), 0);
+                     G_CALLBACK (gtk_image_menu_item_setting_changed), NULL);
   g_object_set_data (G_OBJECT (settings), 
                     I_("gtk-image-menu-item-connection"),
                     GUINT_TO_POINTER (show_image_connection));
index 00d3ed8ddff08874a9e311ad875a88b6d3784d1b..c78a454a1d971a888795e38b96f006e22a15d039 100644 (file)
@@ -481,8 +481,10 @@ gtk_input_dialog_set_axis (GtkWidget *w,
   else
     old_use = GDK_AXIS_IGNORE;
 
-  if (axis == old_axis)
+  if (axis == old_axis) {
+    g_free (new_axes);
     return;
+  }
 
   /* we must always have an x and a y axis */
   if ((axis == -1 && (use == GDK_AXIS_X || use == GDK_AXIS_Y)) ||
index d548edd7a072911c1da1594501c90d510c78ce71..b44e756e99d18868bbd8a8f032792a6594bfdb31 100644 (file)
@@ -3956,7 +3956,6 @@ gtk_menu_stop_scrolling (GtkMenu *menu)
 {
   GtkSettings *settings = gtk_widget_get_settings (GTK_WIDGET (menu));
   gboolean touchscreen_mode;
-  gboolean was_scrolling;
 
   gtk_menu_remove_scroll_timeout (menu);
   
index e2f634adea11f536082e90daf39c842ac1cf5507..9b3306328025d352c76dea73a73d2b5cbaa4a830 100644 (file)
@@ -333,7 +333,7 @@ setup_type (GtkMessageDialog *dialog,
       break;
 
     default:
-      g_warning ("Unknown GtkMessageType %d", type);
+      g_warning ("Unknown GtkMessageType %u", type);
       break;
     }
 
index 66c44d29d9d5b2fa6500bec4d436d6d10aa8a2a8..d5a9b8a592e75e243c0e03c78b615beea47f73e1 100644 (file)
@@ -179,9 +179,9 @@ struct _GtkNotebookPrivate
 
   guint32 timestamp;
 
-  gboolean during_reorder : 1;
-  gboolean during_detach  : 1;
-  gboolean has_scrolled   : 1;
+  guint during_reorder : 1;
+  guint during_detach  : 1;
+  guint has_scrolled   : 1;
 };
 
 static const GtkTargetEntry notebook_source_targets [] = {
index 2f953faec2770953351773da6c29651f945c08cb..442ef7f606f17f0c43007471456b0d55b3ba5695 100644 (file)
@@ -250,7 +250,6 @@ remove_settings_signal (GtkPathBar *path_bar,
 static void
 gtk_path_bar_dispose (GObject *object)
 {
-  GList *list;
   GtkPathBar *path_bar = GTK_PATH_BAR (object);
 
   remove_settings_signal (path_bar, gtk_widget_get_screen (GTK_WIDGET (object)));
index 75f345bae714c1486ec37c86827fe4569397523c..7b1ed3fdd5aab98ae4d334c6df401d4202c2cae2 100644 (file)
@@ -358,11 +358,9 @@ combo_box_set (GtkWidget   *combo,
               const gchar *value)
 {
   GtkTreeModel *model;
-  GtkListStore *store;
   struct ComboSet set_data;
   
   model = gtk_combo_box_get_model (GTK_COMBO_BOX (combo));
-  store = GTK_LIST_STORE (model);
 
   set_data.combo = GTK_COMBO_BOX (combo);
   set_data.value = value;
index b2f789124e79e594c5aa8cd9752547815c7a2f76..231124175265703fb1c1d4d2b5dcc468ee0fa733 100644 (file)
@@ -33,7 +33,6 @@
 #include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkrange.h"
-#include "gtkintl.h"
 #include "gtkscrollbar.h"
 #include "gtkprivate.h"
 #include "gtkalias.h"
index b4f70641dd08f63d9f900ab33d538a4051eeffe5..3c9783e1a27493b710271e97476b05c2391fff0e 100644 (file)
@@ -1567,7 +1567,7 @@ count_parity (GtkRBTree *tree,
     g_print ("parity incorrect for node\n");
 
   if (get_parity (node) != 1)
-    g_error ("Node has incorrect parity %d", get_parity (node));
+    g_error ("Node has incorrect parity %u", get_parity (node));
   
   return res;
 }
index 1a9f131480437102017026352e2a7c22e7d5e59f..fe8575e2850b18207dbd32a0ea26744622f7e8ff 100644 (file)
@@ -60,7 +60,6 @@
 #include "gtkseparatormenuitem.h"
 #include "gtksizegroup.h"
 #include "gtktable.h"
-#include "gtktreeview.h"
 #include "gtktreemodelsort.h"
 #include "gtktreemodelfilter.h"
 #include "gtktreeselection.h"
index 9ad1cb10b4eb66648bd7c3fd1dcbabee0b34d7a1..a72d60e04b55ac94557e0e093cf4c3dae6683123 100644 (file)
 #include "gtkobject.h"
 #include "gtktooltips.h"
 #include "gtktypebuiltins.h"
-
-#include "gtkrecentmanager.h"
-#include "gtkrecentfilter.h"
-#include "gtkrecentchooser.h"
-#include "gtkrecentchooserutils.h"
-#include "gtkrecentchooserprivate.h"
-#include "gtkrecentchoosermenu.h"
 #include "gtkalias.h"
 
 struct _GtkRecentChooserMenuPrivate
@@ -915,7 +908,6 @@ gtk_recent_chooser_menu_create_item (GtkRecentChooserMenu *menu,
                    G_CALLBACK (item_activate_cb),
                    menu);
 
-out:
   g_free (label);
 
   return item;
index d130b399ad114a3fd4f6f66311b7e9b0422c8dd9..6ef783a36129eb03824a0020276b82b9ed29634e 100644 (file)
@@ -928,7 +928,7 @@ gtk_scrolled_window_screen_changed (GtkWidget *widget,
 
   window_placement_connection =
     g_signal_connect (settings, "notify::gtk-scrolled-window-placement",
-                     G_CALLBACK (gtk_scrolled_window_settings_changed), 0);
+                     G_CALLBACK (gtk_scrolled_window_settings_changed), NULL);
   g_object_set_data (G_OBJECT (settings), 
                     I_("gtk-scrolled-window-connection"),
                     GUINT_TO_POINTER (window_placement_connection));
@@ -1049,7 +1049,7 @@ gtk_scrolled_window_scroll_child (GtkScrolledWindow *scrolled_window,
     case GTK_SCROLL_END:
       break;
     default:
-      g_warning ("Invalid scroll type %d for GtkSpinButton::change-value", scroll);
+      g_warning ("Invalid scroll type %u for GtkSpinButton::change-value", scroll);
       return;
     }
 
index 5715b50f4036c8efd930b81dbb18d11028ead88b..451e5d860ee91753c2adde0f8f507a8e8e7a02d0 100644 (file)
@@ -1620,7 +1620,6 @@ gtk_selection_data_get_uris (GtkSelectionData *selection_data)
       selection_data->type == text_uri_list_atom)
     {
       gchar **list;
-      gint i;
       gint count = gdk_text_property_to_utf8_list_for_display (selection_data->display,
                                                               utf8_atom,
                                                               selection_data->format, 
index d6115dd75dff8113a5f9a49628e9e56c75797ce9..11a2e96c70b94ab94bd246fc09b236d860620477 100644 (file)
@@ -259,12 +259,10 @@ gtk_statusbar_push (GtkStatusbar *statusbar,
                    const gchar  *text)
 {
   GtkStatusbarMsg *msg;
-  GtkStatusbarClass *class;
 
   g_return_val_if_fail (GTK_IS_STATUSBAR (statusbar), 0);
   g_return_val_if_fail (text != NULL, 0);
 
-  class = GTK_STATUSBAR_GET_CLASS (statusbar);
   msg = g_slice_new (GtkStatusbarMsg);
   msg->text = g_strdup (text);
   msg->context_id = context_id;
@@ -299,10 +297,6 @@ gtk_statusbar_pop (GtkStatusbar *statusbar,
 
          if (msg->context_id == context_id)
            {
-             GtkStatusbarClass *class;
-
-             class = GTK_STATUSBAR_GET_CLASS (statusbar);
-
              statusbar->messages = g_slist_remove_link (statusbar->messages,
                                                         list);
              g_free (msg->text);
@@ -352,9 +346,6 @@ gtk_statusbar_remove (GtkStatusbar *statusbar,
          if (msg->context_id == context_id &&
              msg->message_id == message_id)
            {
-             GtkStatusbarClass *class;
-             
-             class = GTK_STATUSBAR_GET_CLASS (statusbar);
              statusbar->messages = g_slist_remove_link (statusbar->messages, list);
              g_free (msg->text);
               g_slice_free (GtkStatusbarMsg, msg);
@@ -408,13 +399,11 @@ static void
 gtk_statusbar_destroy (GtkObject *object)
 {
   GtkStatusbar *statusbar;
-  GtkStatusbarClass *class;
   GSList *list;
 
   g_return_if_fail (GTK_IS_STATUSBAR (object));
 
   statusbar = GTK_STATUSBAR (object);
-  class = GTK_STATUSBAR_GET_CLASS (statusbar);
 
   for (list = statusbar->messages; list; list = list->next)
     {
index 92d31b7722897fbbf744c952f600ffca2e39e200..297a1493bd44fd36d7bfc414dfff601adfa0038f 100755 (executable)
@@ -1044,7 +1044,7 @@ gtk_status_icon_set_image (GtkStatusIcon *status_icon,
       g_object_notify (G_OBJECT (status_icon), "icon-name");
       break;
     default:
-      g_warning ("Image type %d not handled by GtkStatusIcon", storage_type);
+      g_warning ("Image type %u not handled by GtkStatusIcon", storage_type);
     }
 
   g_object_thaw_notify (G_OBJECT (status_icon));
index e933fc0e6139f951720a558f5e693d2db701954f..0d79deb3cc63577d965578cb526d3ec298061f04 100644 (file)
@@ -563,7 +563,6 @@ static void
 gtk_text_buffer_finalize (GObject *object)
 {
   GtkTextBuffer *buffer;
-  GtkTextBufferPrivate *priv;
 
   buffer = GTK_TEXT_BUFFER (object);
 
@@ -3237,9 +3236,6 @@ clipboard_rich_text_received (GtkClipboard *clipboard,
   GtkTextIter insert_point;
   gboolean retval = TRUE;
   GError *error = NULL;
-  GtkTextBufferPrivate *priv;
-
-  priv = GTK_TEXT_BUFFER_GET_PRIVATE (request_data->buffer);
 
   if (text != NULL && length > 0)
     {
@@ -3328,7 +3324,6 @@ clipboard_clipboard_buffer_received (GtkClipboard     *clipboard,
 {
   ClipboardRequest *request_data = data;
   GtkTextBuffer *src_buffer;
-  GtkTextBufferPrivate *priv;
 
   src_buffer = selection_data_get_buffer (selection_data, request_data); 
 
@@ -3352,8 +3347,6 @@ clipboard_clipboard_buffer_received (GtkClipboard     *clipboard,
     }
   else
     {
-      priv = GTK_TEXT_BUFFER_GET_PRIVATE (request_data->buffer);
-
       if (gtk_clipboard_wait_is_rich_text_available (clipboard,
                                                      request_data->buffer))
         {
index 4ba37f9cf5ee66ce02cd49d7e0458e95369af6ec..8ac3fb35f5db1461b88c524e6b1333ad87d91d31 100644 (file)
@@ -299,24 +299,12 @@ iter_init_from_char_offset (GtkTextIter *iter,
   return real;
 }
 
-static inline void
-invalidate_segment (GtkTextRealIter *iter)
-{
-  iter->segments_changed_stamp -= 1;
-}
-
 static inline void
 invalidate_char_index (GtkTextRealIter *iter)
 {
   iter->cached_char_index = -1;
 }
 
-static inline void
-invalidate_line_number (GtkTextRealIter *iter)
-{
-  iter->cached_line_number = -1;
-}
-
 static inline void
 adjust_char_index (GtkTextRealIter *iter, gint count)
 {
@@ -331,28 +319,6 @@ adjust_line_number (GtkTextRealIter *iter, gint count)
     iter->cached_line_number += count;
 }
 
-static inline void
-adjust_char_offsets (GtkTextRealIter *iter, gint count)
-{
-  if (iter->line_char_offset >= 0)
-    {
-      iter->line_char_offset += count;
-      g_assert (iter->segment_char_offset >= 0);
-      iter->segment_char_offset += count;
-    }
-}
-
-static inline void
-adjust_byte_offsets (GtkTextRealIter *iter, gint count)
-{
-  if (iter->line_byte_offset >= 0)
-    {
-      iter->line_byte_offset += count;
-      g_assert (iter->segment_byte_offset >= 0);
-      iter->segment_byte_offset += count;
-    }
-}
-
 static inline void
 ensure_char_offsets (GtkTextRealIter *iter)
 {
@@ -3917,7 +3883,6 @@ gtk_text_iter_set_visible_line_index (GtkTextIter *iter,
                                       gint         byte_on_line)
 {
   GtkTextRealIter *real;
-  gint bytes_in_line = 0;
   gint offset = 0;
   GtkTextIter pos;
   GtkTextLineSegment *seg;
@@ -3926,8 +3891,6 @@ gtk_text_iter_set_visible_line_index (GtkTextIter *iter,
 
   gtk_text_iter_set_line_offset (iter, 0);
 
-  bytes_in_line = gtk_text_iter_get_bytes_in_line (iter);
-
   pos = *iter;
 
   real = gtk_text_iter_make_real (&pos);
index 63f3781998dd7de21cd9ac0150b33bbfc6a536ba..71eaaf7a0aecda1d860e654f97998f233af31778 100644 (file)
@@ -298,6 +298,11 @@ char_segment_split_func (GtkTextLineSegment *seg, int index)
  *      This procedure merges adjacent character segments into
  *      a single character segment, if possible.
  *
+ * Arguments:
+ *      segPtr: Pointer to the first of two adjacent segments to
+ *              join.
+ *      line:   Line containing segments (not used).
+ *
  * Results:
  *      The return value is a pointer to the first segment in
  *      the (new) list of segments that used to start with segPtr.
@@ -310,11 +315,7 @@ char_segment_split_func (GtkTextLineSegment *seg, int index)
 
         /* ARGSUSED */
 static GtkTextLineSegment *
-char_segment_cleanup_func (segPtr, line)
-     GtkTextLineSegment *segPtr;           /* Pointer to first of two adjacent
-                                         * segments to join. */
-     GtkTextLine *line;                /* Line containing segments (not
-                                        * used). */
+char_segment_cleanup_func (GtkTextLineSegment *segPtr, GtkTextLine *line)
 {
   GtkTextLineSegment *segPtr2, *newPtr;
 
@@ -352,6 +353,12 @@ char_segment_cleanup_func (segPtr, line)
  *
  *      This procedure is invoked to delete a character segment.
  *
+ * Arguments:
+ *      segPtr   : Segment to delete
+ *      line     : Line containing segment
+ *      treeGone : Non-zero means the entire tree is being
+ *                 deleted, so everything must get cleaned up.
+ *
  * Results:
  *      Always returns 0 to indicate that the segment was deleted.
  *
@@ -363,12 +370,7 @@ char_segment_cleanup_func (segPtr, line)
 
         /* ARGSUSED */
 static int
-char_segment_delete_func (segPtr, line, treeGone)
-     GtkTextLineSegment *segPtr;           /* Segment to delete. */
-     GtkTextLine *line;                /* Line containing segment. */
-     int treeGone;                      /* Non-zero means the entire tree is
-                                         * being deleted, so everything must
-                                         * get cleaned up. */
+char_segment_delete_func (GtkTextLineSegment *segPtr, GtkTextLine *line, int treeGone)
 {
   g_free ((char*) segPtr);
   return 0;
@@ -382,6 +384,10 @@ char_segment_delete_func (segPtr, line, treeGone)
  *      This procedure is invoked to perform consistency checks
  *      on character segments.
  *
+ * Arguments:
+ *      segPtr : Segment to check
+ *      line   : Line containing segment
+ *
  * Results:
  *      None.
  *
@@ -394,9 +400,7 @@ char_segment_delete_func (segPtr, line, treeGone)
 
         /* ARGSUSED */
 static void
-char_segment_check_func (segPtr, line)
-     GtkTextLineSegment *segPtr;           /* Segment to check. */
-     GtkTextLine *line;                /* Line containing segment. */
+char_segment_check_func (GtkTextLineSegment *segPtr, GtkTextLine *line)
 {
   char_segment_self_check (segPtr);
 
@@ -436,6 +440,12 @@ _gtk_toggle_segment_new (GtkTextTagInfo *info, gboolean on)
  *
  *      This procedure is invoked to delete toggle segments.
  *
+ * Arguments:
+ *      segPtr   : Segment to check
+ *      line     : Line containing segment
+ *      treeGone : Non-zero means the entire tree is being
+ *                 deleted so everything must get cleaned up
+ *
  * Results:
  *      Returns 1 to indicate that the segment may not be deleted,
  *      unless the entire B-tree is going away.
@@ -449,12 +459,7 @@ _gtk_toggle_segment_new (GtkTextTagInfo *info, gboolean on)
  */
 
 static int
-toggle_segment_delete_func (segPtr, line, treeGone)
-     GtkTextLineSegment *segPtr;           /* Segment to check. */
-     GtkTextLine *line;                /* Line containing segment. */
-     int treeGone;                      /* Non-zero means the entire tree is
-                                         * being deleted, so everything must
-                                         * get cleaned up. */
+toggle_segment_delete_func (GtkTextLineSegment *segPtr, GtkTextLine *line, int treeGone)
 {
   if (treeGone)
     {
@@ -488,6 +493,10 @@ toggle_segment_delete_func (segPtr, line, treeGone)
  *      been modified in some way.  It's invoked after the
  *      modifications are complete.
  *
+ * Arguments:
+ *      segPtr : Segment to check
+ *      line   : Line that now contains segment
+ *
  * Results:
  *      The return value is the head segment in a new list
  *      that is to replace the tail of the line that used to
@@ -503,9 +512,7 @@ toggle_segment_delete_func (segPtr, line, treeGone)
  */
 
 static GtkTextLineSegment *
-toggle_segment_cleanup_func (segPtr, line)
-     GtkTextLineSegment *segPtr;   /* Segment to check. */
-     GtkTextLine *line;        /* Line that now contains segment. */
+toggle_segment_cleanup_func (GtkTextLineSegment *segPtr, GtkTextLine *line)
 {
   GtkTextLineSegment *segPtr2, *prevPtr;
   int counts;
@@ -563,6 +570,10 @@ toggle_segment_cleanup_func (segPtr, line)
  *      This procedure is invoked when a toggle segment is about
  *      to move from one line to another.
  *
+ * Arguments:
+ *      segPtr : Segment to check
+ *      line   : Line that used to contain segment
+ *
  * Results:
  *      None.
  *
@@ -573,9 +584,7 @@ toggle_segment_cleanup_func (segPtr, line)
  */
 
 static void
-toggle_segment_line_change_func (segPtr, line)
-     GtkTextLineSegment *segPtr;   /* Segment to check. */
-     GtkTextLine *line;        /* Line that used to contain segment. */
+toggle_segment_line_change_func (GtkTextLineSegment *segPtr, GtkTextLine *line)
 {
   if (segPtr->body.toggle.inNodeCounts)
     {
index 5df48d3be856b2b75cdf59facce1d95578b79973..3746f5704abff0448367864d9782d13ece4cac88 100644 (file)
@@ -52,7 +52,6 @@
 #include "gtktexttag.h"
 #include "gtktexttypes.h"
 #include "gtktexttagtable.h"
-#include "gtkmain.h"
 #include "gtkintl.h"
 #include "gtkmarshalers.h"
 #include "gtkprivate.h"
index 470beaaa56a144438ff84c3ccaf927be04a5ed42..941b6b7963d8a65c8efb6656658fd341034a0cfc 100644 (file)
@@ -228,7 +228,7 @@ gtk_toggle_action_activate (GtkAction *action)
 
   toggle_action->private_data->active = !toggle_action->private_data->active;
 
-  g_object_notify (action, "active");
+  g_object_notify (G_OBJECT (action), "active");
 
   gtk_toggle_action_toggled (toggle_action);
 }
index 1003cb920cac0013100d8e3bf94fa857754c39c4..cd99501c90090a27e0932a2b4b53b47b45e79ac2 100644 (file)
@@ -76,12 +76,10 @@ gtk_toggle_button_class_init (GtkToggleButtonClass *class)
 {
   GObjectClass *gobject_class;
   GtkWidgetClass *widget_class;
-  GtkContainerClass *container_class;
   GtkButtonClass *button_class;
 
   gobject_class = G_OBJECT_CLASS (class);
   widget_class = (GtkWidgetClass*) class;
-  container_class = (GtkContainerClass*) class;
   button_class = (GtkButtonClass*) class;
 
   gobject_class->set_property = gtk_toggle_button_set_property;
@@ -243,12 +241,8 @@ void
 gtk_toggle_button_set_mode (GtkToggleButton *toggle_button,
                            gboolean         draw_indicator)
 {
-  GtkWidget *widget;
-
   g_return_if_fail (GTK_IS_TOGGLE_BUTTON (toggle_button));
 
-  widget = GTK_WIDGET (toggle_button);
-
   draw_indicator = draw_indicator ? TRUE : FALSE;
 
   if (toggle_button->draw_indicator != draw_indicator)
index 660661761159de93a51421ac62db224c27d733f6..0dd959d9a5eb445b151d0341baaa968ede77ea00 100644 (file)
@@ -38,7 +38,6 @@
 #include "gtkseparatortoolitem.h"
 #include "gtkmenu.h"
 #include "gtkradiobutton.h"
-#include "gtktoolbar.h"
 #include "gtkbindings.h"
 #include <gdk/gdkkeysyms.h>
 #include "gtkmarshalers.h"
@@ -243,12 +242,6 @@ static ToolbarContent *toolbar_content_new_tool_item        (GtkToolbar
                                                             GtkToolItem         *item,
                                                             gboolean             is_placeholder,
                                                             gint                 pos);
-static ToolbarContent *toolbar_content_new_compatibility    (GtkToolbar          *toolbar,
-                                                            GtkToolbarChildType  type,
-                                                            GtkWidget           *widget,
-                                                            GtkWidget           *icon,
-                                                            GtkWidget           *label,
-                                                            gint                 pos);
 static void            toolbar_content_remove               (ToolbarContent      *content,
                                                             GtkToolbar          *toolbar);
 static void            toolbar_content_free                 (ToolbarContent      *content);
@@ -1454,7 +1447,6 @@ gtk_toolbar_size_allocate (GtkWidget     *widget,
   GtkRequisition arrow_requisition;
   gboolean overflowing;
   gboolean size_changed;
-  gdouble elapsed;
   GtkAllocation item_area;
   
   size_changed = FALSE;
@@ -1735,7 +1727,6 @@ gtk_toolbar_size_allocate (GtkWidget     *widget,
        }
     }
 
-  elapsed = g_timer_elapsed (priv->timer, NULL);
   for (list = priv->content, i = 0; list != NULL; list = list->next, ++i)
     {
       ToolbarContent *content = list->data;
@@ -3740,7 +3731,6 @@ internal_insert_element (GtkToolbar          *toolbar,
                         gboolean             use_stock)
 {
   GtkWidget *box;
-  ToolbarContent *content;
   char *free_me = NULL;
 
   GtkWidget *child_widget;
@@ -3850,9 +3840,6 @@ internal_insert_element (GtkToolbar          *toolbar,
                            tooltip_text, tooltip_private_text);
     }
   
-  content = toolbar_content_new_compatibility (toolbar, type, child_widget,
-                                              child_icon, child_label, position);
-  
   if (free_me)
     g_free (free_me);
   
@@ -3927,54 +3914,6 @@ toolbar_content_new_tool_item (GtkToolbar  *toolbar,
   return content;
 }
 
-static ToolbarContent *
-toolbar_content_new_compatibility (GtkToolbar          *toolbar,
-                                  GtkToolbarChildType  type,
-                                  GtkWidget            *widget,
-                                  GtkWidget            *icon,
-                                  GtkWidget            *label,
-                                  gint                  pos)
-{
-  ToolbarContent *content;
-  GtkToolbarChild *child;
-  GtkToolbarPrivate *priv = GTK_TOOLBAR_GET_PRIVATE (toolbar);
-  
-  content = g_new0 (ToolbarContent, 1);
-
-  child = &(content->u.compatibility.child);
-  
-  content->type = COMPATIBILITY;
-  child->type = type;
-  child->widget = widget;
-  child->icon = icon;
-  child->label = label;
-  
-  if (type != GTK_TOOLBAR_CHILD_SPACE)
-    {
-      gtk_widget_set_parent (child->widget, GTK_WIDGET (toolbar));
-    }
-  else
-    {
-      content->u.compatibility.space_visible = TRUE;
-      gtk_widget_queue_resize (GTK_WIDGET (toolbar));
-    }
-  if (type == GTK_TOOLBAR_CHILD_BUTTON ||
-      type == GTK_TOOLBAR_CHILD_TOGGLEBUTTON ||
-      type == GTK_TOOLBAR_CHILD_RADIOBUTTON)
-    {
-      set_child_packing_and_visibility (toolbar, child);
-    }
-
-  priv->content = g_list_insert (priv->content, content, pos);
-  toolbar->children = g_list_insert (toolbar->children, child, pos);
-  priv->need_rebuild = TRUE;
-  
-  toolbar->num_children++;
-  
-  return content;
-}
-
 static void
 toolbar_content_remove (ToolbarContent *content,
                        GtkToolbar     *toolbar)
index f70d7e599c8db89bdfb8de7e68a213c38b8c394f..c7b2f573cffda82bde2b1a3c915125a61d60ad81 100644 (file)
@@ -32,7 +32,6 @@
 #include "gtkvbox.h"
 #include "gtkintl.h"
 #include "gtktoolbar.h"
-#include "gtkiconfactory.h"
 #include "gtkprivate.h"
 #include "gtkalias.h"
 
index af17f5547ac7a8aa148f1c029dedf75488dd2d76..d203082d7cfdeb0355e0cd6286b13f6fe4f0148e 100644 (file)
@@ -438,9 +438,9 @@ gtk_tooltips_draw_tips (GtkTooltips *tooltips)
   else
     y = y + widget->allocation.height + 4;
 
-  toplevel = gtk_widget_get_toplevel (widget);
+  toplevel = GTK_WINDOW (gtk_widget_get_toplevel (widget));
   if (toplevel && GTK_IS_WINDOW (toplevel))
-    gtk_window_set_transient_for (tooltips->tip_window, toplevel);
+    gtk_window_set_transient_for (GTK_WINDOW (tooltips->tip_window), toplevel);
   
   gtk_window_move (GTK_WINDOW (tooltips->tip_window), x, y);
   gtk_widget_show (tooltips->tip_window);
index 02040fa4cb7b108f44250f2d655253d10086a99e..f9c4c3f6335125f1ca27068e3a6c451be8811bdd 100644 (file)
@@ -537,7 +537,7 @@ _gtk_tree_data_list_set_header (GList                  *header_list,
       header = g_slice_new0 (GtkTreeDataSortHeader);
       header->sort_column_id = sort_column_id;
       if (list)
-       g_list_append (list, header);
+       list = g_list_append (list, header);
       else
        header_list = g_list_append (header_list, header);
     }
index 74d1e9c43ce70870f0f86db41bb5cf70f1b085a2..53f0d57e5b3a2e8fd0b0fb69bd228e4923abeb65 100644 (file)
@@ -951,7 +951,7 @@ gtk_tree_model_filter_remove_node (GtkTreeModelFilter *filter,
 {
   FilterElt *elt, *parent;
   FilterLevel *level, *parent_level;
-  gint offset, i, length;
+  gint i, length;
 
   gboolean emit_child_toggled = FALSE;
 
@@ -962,7 +962,6 @@ gtk_tree_model_filter_remove_node (GtkTreeModelFilter *filter,
   parent_level = level->parent_level;
 
   length = level->array->len;
-  offset = elt->offset;
 
   /* we distinguish a couple of cases:
    *  - root level, length > 1: emit row-deleted and remove.
@@ -1604,8 +1603,8 @@ gtk_tree_model_filter_row_deleted (GtkTreeModel *c_model,
   GtkTreeModelFilter *filter = GTK_TREE_MODEL_FILTER (data);
   GtkTreePath *path;
   GtkTreeIter iter;
-  FilterElt *elt, *parent;
-  FilterLevel *level, *parent_level;
+  FilterElt *elt, *parent = NULL;
+  FilterLevel *level, *parent_level = NULL;
   gboolean emit_child_toggled = FALSE;
   gint offset;
   gint i;
index ee3a8151dd7a017c50260267efe8506012a9c7fe..e1636f4d729c8e214dfa9de1309865c015db89ce 100644 (file)
@@ -5586,7 +5586,6 @@ validate_visible_area (GtkTreeView *tree_view)
   GtkRBNode *node = NULL;
   gboolean need_redraw = FALSE;
   gboolean size_changed = FALSE;
-  gboolean update_dy = FALSE;
   gint total_height;
   gint area_above = 0;
   gint area_below = 0;
@@ -5611,8 +5610,6 @@ validate_visible_area (GtkTreeView *tree_view)
       if (path && !_gtk_tree_view_find_node (tree_view, path, &tree, &node))
        {
           /* we are going to scroll, and will update dy */
-         update_dy = TRUE;
-
          gtk_tree_model_get_iter (tree_view->priv->model, &iter, path);
          if (GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_INVALID) ||
              GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_COLUMN_INVALID))
@@ -5655,8 +5652,6 @@ validate_visible_area (GtkTreeView *tree_view)
              else
                {
                  /* row not visible */
-                  update_dy = TRUE;
-
                  if (dy >= 0 && dy <= tree_view->priv->vadjustment->page_size)
                    {
                      /* row at the beginning -- fixed */
@@ -5905,7 +5900,6 @@ validate_visible_area (GtkTreeView *tree_view)
             }
        }
       area_above -= ROW_HEIGHT (tree_view, new_height);
-      update_dy = TRUE;
     }
 
   /* if we scrolled to a path, we need to set the dy here,
index a9c02142e51fe16105cfd3a13fbd110288cbbc14..b0321e8b41fbdac075a25469b47eaf40ccf0d698 100644 (file)
@@ -223,9 +223,6 @@ gtk_vscale_get_layout_offsets (GtkScale *scale,
 
     default:
       g_return_if_reached ();
-      *x = 0;
-      *y = 0;
-      break;
     }
 
   *x += widget->allocation.x;
index a5fadf9b82c40971c7a60310a5ab2842d1eca000..392ebf51855fe88a949b780902f623d471aa9c4b 100644 (file)
@@ -48,7 +48,6 @@
 #include <gobject/gvaluecollector.h>
 #include <gobject/gobjectnotifyqueue.c>
 #include "gdk/gdkkeysyms.h"
-#include "gtkintl.h"
 #include "gtkaccessible.h"
 #include "gtktooltips.h"
 #include "gtkinvisible.h"
index c83572a0bb7a8770eb4b74807ce20b0a4e404aa2..90310524c16dbcf3d487153b7c6b3d9425c085f0 100644 (file)
@@ -31,7 +31,7 @@
 #include <unistd.h>
 #endif
 
-#if USE_LA_MODULES
+#ifdef USE_LA_MODULES
 #define SOEXT ".la"
 #else
 #define SOEXT ("." G_MODULE_SUFFIX)
index b2d61827587b79010b8377fc327bd0c98fda0ea1..f04ee8abc777f13e27e030b84c3552d966fd9b9c 100644 (file)
@@ -115,7 +115,7 @@ typedef enum {
   PART_LAST
 } Part;
 
-const char *part_names[PART_LAST] = {
+static const char *part_names[PART_LAST] = {
   "black",
   "dark",
   "mid",
index da3071ccb0c58c3f014263a44714faca81977338..f19d03c9c3f6ab058ae762bd384ec53cfc7521da 100644 (file)
@@ -61,7 +61,7 @@ static gchar *var_name = "-";
 #define ALIGN_VALUE(this, boundary) \
   (( ((unsigned long)(this)) + (((unsigned long)(boundary)) -1)) & (~(((unsigned long)(boundary))-1)))
 
-gboolean
+static gboolean
 is_cache_up_to_date (const gchar *path)
 {
   struct stat path_stat, cache_stat;
@@ -91,7 +91,7 @@ is_cache_up_to_date (const gchar *path)
   return cache_stat.st_mtime >= path_stat.st_mtime;
 }
 
-gboolean
+static gboolean
 has_theme_index (const gchar *path)
 {
   gboolean result;
@@ -450,7 +450,7 @@ maybe_cache_image_data (Image       *image,
     }
 }
 
-GList *
+static GList *
 scan_directory (const gchar *base_path, 
                const gchar *subdir, 
                GHashTable  *files, 
@@ -614,7 +614,7 @@ convert_to_hash (gpointer key, gpointer value, gpointer user_data)
   return TRUE;
 }
 
-gboolean
+static gboolean
 write_string (FILE *cache, const gchar *n)
 {
   gchar *s;
@@ -631,7 +631,7 @@ write_string (FILE *cache, const gchar *n)
   
 }
 
-gboolean
+static gboolean
 write_card16 (FILE *cache, guint16 n)
 {
   int i;
@@ -643,7 +643,7 @@ write_card16 (FILE *cache, guint16 n)
   return i == 1;
 }
 
-gboolean
+static gboolean
 write_card32 (FILE *cache, guint32 n)
 {
   int i;
@@ -656,7 +656,7 @@ write_card32 (FILE *cache, guint32 n)
 }
 
 
-gboolean
+static gboolean
 write_pixdata (FILE *cache, GdkPixdata *pixdata)
 {
   guint8 *s;
@@ -691,7 +691,7 @@ write_header (FILE *cache, guint32 dir_list_offset)
          write_card32 (cache, dir_list_offset));
 }
 
-guint
+static guint
 get_image_meta_data_size (Image *image)
 {
   gint i;
@@ -719,7 +719,7 @@ get_image_meta_data_size (Image *image)
   return len;
 }
 
-guint
+static guint
 get_image_pixel_data_size (Image *image)
 {
   if (image->pixel_data_size == 0)
@@ -735,7 +735,7 @@ get_image_pixel_data_size (Image *image)
   return image->pixel_data_size;
 }
 
-guint
+static guint
 get_image_data_size (Image *image)
 {
   guint len;
@@ -751,7 +751,7 @@ get_image_data_size (Image *image)
   return len;
 }
 
-guint
+static guint
 get_single_node_size (HashNode *node, gboolean include_image_data)
 {
   int len = 0;
@@ -778,7 +778,7 @@ get_single_node_size (HashNode *node, gboolean include_image_data)
   return len;
 }
 
-guint
+static guint
 get_bucket_size (HashNode *node)
 {
   int len = 0;
@@ -792,7 +792,7 @@ get_bucket_size (HashNode *node)
   return len;
 }
 
-gboolean
+static gboolean
 write_bucket (FILE *cache, HashNode *node, int *offset)
 {
   while (node != NULL)
@@ -1012,7 +1012,7 @@ write_bucket (FILE *cache, HashNode *node, int *offset)
   return TRUE;
 }
 
-gboolean
+static gboolean
 write_hash_table (FILE *cache, HashContext *context, int *new_offset)
 {
   int offset = HASH_OFFSET;
@@ -1060,7 +1060,7 @@ write_hash_table (FILE *cache, HashContext *context, int *new_offset)
   return TRUE;
 }
 
-gboolean
+static gboolean
 write_dir_index (FILE *cache, int offset, GList *directories)
 {
   int n_dirs;
@@ -1094,7 +1094,7 @@ write_dir_index (FILE *cache, int offset, GList *directories)
   return TRUE;
 }
 
-gboolean
+static gboolean
 write_file (FILE *cache, GHashTable *files, GList *directories)
 {
   HashContext context;
@@ -1140,7 +1140,7 @@ write_file (FILE *cache, GHashTable *files, GList *directories)
   return TRUE;
 }
 
-void
+static void
 build_cache (const gchar *path)
 {
   gchar *cache_path, *tmp_cache_path;
@@ -1243,7 +1243,7 @@ build_cache (const gchar *path)
     g_printerr (_("Cache file created successfully.\n"));
 }
 
-void
+static void
 write_csource (const gchar *path)
 {
   gchar *cache_path;
index 2dd70f1d6987f6c3ce1fb8822e2005c67e80b23c..07d89eb32e930bbed190dddedc42bbae5849ee9b 100644 (file)
@@ -105,7 +105,7 @@ _xdg_mime_alias_list_lookup (XdgAliasList *list,
   if (list->n_aliases > 0)
     {
       key.alias = (char *)alias;
-      key.mime_type = 0;
+      key.mime_type = NULL;
 
       entry = bsearch (&key, list->aliases, list->n_aliases,
                       sizeof (XdgAlias), alias_entry_cmp);