]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agoRemove size_request from GtkRange
Matthias Clasen [Wed, 27 Oct 2010 12:10:40 +0000 (08:10 -0400)]
Remove size_request from GtkRange

13 years agoRemove size_request from GtkPaned
Matthias Clasen [Wed, 27 Oct 2010 11:55:27 +0000 (07:55 -0400)]
Remove size_request from GtkPaned

This is not the final word; GtkPaned should really implement
height-for-width, but I didn't have time to complete that now.

13 years agoRemoved size_request from GtkOffscreenWindow
Tristan Van Berkom [Wed, 27 Oct 2010 05:43:30 +0000 (14:43 +0900)]
Removed size_request from GtkOffscreenWindow

13 years agoRemoved size_request from GtkNotebook
Tristan Van Berkom [Wed, 27 Oct 2010 05:35:04 +0000 (14:35 +0900)]
Removed size_request from GtkNotebook

13 years agoRemoved size_request from GtkMenuBar
Tristan Van Berkom [Wed, 27 Oct 2010 05:30:07 +0000 (14:30 +0900)]
Removed size_request from GtkMenuBar

13 years agoRemoved size_request from GtkImageMenuItem
Tristan Van Berkom [Wed, 27 Oct 2010 05:12:41 +0000 (14:12 +0900)]
Removed size_request from GtkImageMenuItem

13 years agoRemoved size_request from GtkIconView.
Tristan Van Berkom [Wed, 27 Oct 2010 05:11:36 +0000 (14:11 +0900)]
Removed size_request from GtkIconView.

13 years agoRemove size_request from GtkHandleBox
Tristan Van Berkom [Wed, 27 Oct 2010 04:56:46 +0000 (13:56 +0900)]
Remove size_request from GtkHandleBox

13 years agoFixed unused variable in get_preferred_height().
Tristan Van Berkom [Wed, 27 Oct 2010 04:56:13 +0000 (13:56 +0900)]
Fixed unused variable in get_preferred_height().

13 years agoRemove size_request from GtkSpinButton
Matthias Clasen [Wed, 27 Oct 2010 03:46:06 +0000 (23:46 -0400)]
Remove size_request from GtkSpinButton

13 years agoRemove size_request from GtkProgressBar
Matthias Clasen [Wed, 27 Oct 2010 03:30:48 +0000 (23:30 -0400)]
Remove size_request from GtkProgressBar

13 years agoRemove size_reuqest from GtkImage
Matthias Clasen [Wed, 27 Oct 2010 03:16:40 +0000 (23:16 -0400)]
Remove size_reuqest from GtkImage

13 years agoRemove size_request from GtkLayout
Matthias Clasen [Wed, 27 Oct 2010 03:03:10 +0000 (23:03 -0400)]
Remove size_request from GtkLayout

13 years agoRemove size_request from GtkHSV
Matthias Clasen [Wed, 27 Oct 2010 02:56:53 +0000 (22:56 -0400)]
Remove size_request from GtkHSV

13 years agoRemove size_request from GtkFixed
Matthias Clasen [Wed, 27 Oct 2010 02:28:24 +0000 (22:28 -0400)]
Remove size_request from GtkFixed

13 years agoRemove size_request from GtkEntry
Matthias Clasen [Wed, 27 Oct 2010 01:41:13 +0000 (21:41 -0400)]
Remove size_request from GtkEntry

13 years agoRemove size_request from GtkCheckButton
Matthias Clasen [Wed, 27 Oct 2010 01:29:58 +0000 (21:29 -0400)]
Remove size_request from GtkCheckButton

13 years agoRemove size_request from GtkCalendar
Matthias Clasen [Wed, 27 Oct 2010 01:06:40 +0000 (21:06 -0400)]
Remove size_request from GtkCalendar

13 years agoRemove size_request from GtkButtonBox
Matthias Clasen [Wed, 27 Oct 2010 00:57:40 +0000 (20:57 -0400)]
Remove size_request from GtkButtonBox

13 years agoRemove size_request from GtkAssistant
Matthias Clasen [Wed, 27 Oct 2010 00:57:23 +0000 (20:57 -0400)]
Remove size_request from GtkAssistant

13 years agoFix gtk-doc markup: /* <private> */ should be /*< private >*/
Javier Jardón [Tue, 26 Oct 2010 04:35:10 +0000 (06:35 +0200)]
Fix gtk-doc markup: /* <private> */ should be /*< private >*/

13 years agoUpdated galician translations
Fran Diéguez [Tue, 26 Oct 2010 14:59:45 +0000 (16:59 +0200)]
Updated galician translations

13 years agoStop calling GtkWidget parameters 'request'
Matthias Clasen [Tue, 26 Oct 2010 14:53:46 +0000 (10:53 -0400)]
Stop calling GtkWidget parameters 'request'

There were at least a few places where we were using GTK_WIDGET()
on something that was already a GtkWidget*, just because it was
named wrong.

13 years agoUpdate properties Hebrew translation.
Yaron Shahrabani [Tue, 26 Oct 2010 06:32:05 +0000 (08:32 +0200)]
Update properties Hebrew translation.

13 years agogtkcomboboxtext: remove unused variable
Xan Lopez [Tue, 26 Oct 2010 06:18:35 +0000 (15:18 +0900)]
gtkcomboboxtext: remove unused variable

13 years agogtk.symbols: Add scrollable policy API
Javier Jardón [Tue, 26 Oct 2010 04:03:34 +0000 (06:03 +0200)]
gtk.symbols: Add scrollable policy API

13 years agogtkfilechooserentry: Use accessor functions to access GtkEntry
Javier Jardón [Wed, 20 Oct 2010 16:37:59 +0000 (18:37 +0200)]
gtkfilechooserentry: Use accessor functions to access GtkEntry

13 years agogtkspinbutton: Use accessor functions to access GtkEntry
Javier Jardón [Wed, 20 Oct 2010 15:45:17 +0000 (17:45 +0200)]
gtkspinbutton: Use accessor functions to access GtkEntry

13 years agoUse accessor functions to access GtkButton
Javier Jardón [Tue, 19 Oct 2010 00:00:10 +0000 (02:00 +0200)]
Use accessor functions to access GtkButton

13 years agogtktogglebutton: move public members to private structure
Javier Jardón [Tue, 19 Oct 2010 16:18:02 +0000 (18:18 +0200)]
gtktogglebutton: move public members to private structure

13 years agogtktogglebutton: Add _gtk_toggle_button_set_active private accessor
Javier Jardón [Tue, 19 Oct 2010 16:21:56 +0000 (18:21 +0200)]
gtktogglebutton: Add _gtk_toggle_button_set_active private accessor

It's needed by gtkradiobutton

13 years agogtkradiobutton: Use accessor functions to access GtkToggleButton
Javier Jardón [Tue, 19 Oct 2010 02:16:17 +0000 (04:16 +0200)]
gtkradiobutton: Use accessor functions to access GtkToggleButton

13 years agogtkcheckbutton: Use accessor functions to access GtkToggleButton
Javier Jardón [Tue, 19 Oct 2010 02:15:37 +0000 (04:15 +0200)]
gtkcheckbutton: Use accessor functions to access GtkToggleButton

13 years agogtktoggletoolbutton: Use accessor functions to access GtkToggleButton
Javier Jardón [Tue, 19 Oct 2010 16:45:11 +0000 (18:45 +0200)]
gtktoggletoolbutton: Use accessor functions to access GtkToggleButton

13 years agogail: use accessor functions to access GtkToggleButton
Javier Jardón [Tue, 19 Oct 2010 16:46:07 +0000 (18:46 +0200)]
gail: use accessor functions to access GtkToggleButton

13 years agotests: use accessor functions to access GtkToogleButton
Javier Jardón [Tue, 19 Oct 2010 16:46:40 +0000 (18:46 +0200)]
tests: use accessor functions to access GtkToogleButton

13 years agoMissed adding the scrolled window test in previous commit, added scrolled window...
Tristan Van Berkom [Tue, 26 Oct 2010 02:35:04 +0000 (11:35 +0900)]
Missed adding the scrolled window test in previous commit, added scrolled window test.

13 years agoAdded GtkScrollablePolicy property to scrollable interface
Tristan Van Berkom [Tue, 26 Oct 2010 00:59:02 +0000 (09:59 +0900)]
Added GtkScrollablePolicy property to scrollable interface

This patch adds the GtkScrollablePolicy type property to GtkScrollable
and implements it in all subclasses. GtkScrolledWindow observes this
property to make a good guess about when to show/hide scrollbars for
height-for-width content.

Most scrollable children do not do height-for-width *yet* but
most certainly will (toolpalette, treeview, iconview, textview
widgets all TODO), for scrollable widgets that do have a minimum
and natural size, it's important for them to observe the state
of this property in order to properly drive the scroll adjustments
according to the desired GtkScrollablePolicy. This patch makes
GtkViewport do this.

Patch also adds tests/testscrolledwindow.c to display the effects
of this property.

13 years agoBump version
Matthias Clasen [Mon, 25 Oct 2010 22:32:37 +0000 (18:32 -0400)]
Bump version

13 years agoInclude gdkrgba.h
Matthias Clasen [Mon, 25 Oct 2010 18:35:19 +0000 (14:35 -0400)]
Include gdkrgba.h

13 years agoMore updates
Matthias Clasen [Mon, 25 Oct 2010 17:59:49 +0000 (13:59 -0400)]
More updates

13 years agoAdd new GdkRGBA apis to gtk.symbols
Matthias Clasen [Mon, 25 Oct 2010 17:49:37 +0000 (13:49 -0400)]
Add new GdkRGBA apis to gtk.symbols

13 years agoAdd new GdkRGBA api to symbol list
Matthias Clasen [Mon, 25 Oct 2010 17:44:43 +0000 (13:44 -0400)]
Add new GdkRGBA api to symbol list

13 years agoUse g_ascii_strto[u]ll instead of strto[u]l
=Christian Persch [Mon, 25 Oct 2010 16:22:20 +0000 (12:22 -0400)]
Use g_ascii_strto[u]ll instead of strto[u]l

We don't want GtkBuilder input to be locale-dependent.

Bug #632503

13 years agoAdd tests for GdkRGBA serialization
Matthias Clasen [Mon, 25 Oct 2010 16:10:48 +0000 (12:10 -0400)]
Add tests for GdkRGBA serialization

In particular, test that serialization is not dependent on the
locale.

13 years agoAdd some GdkRGBA tests
Matthias Clasen [Mon, 25 Oct 2010 16:01:11 +0000 (12:01 -0400)]
Add some GdkRGBA tests

13 years agoSupport resetting cell renderer colors with NULL again
Matthias Clasen [Mon, 25 Oct 2010 15:17:24 +0000 (11:17 -0400)]
Support resetting cell renderer colors with NULL again

This functionality was lost when GdkRGBA was introduced.

Bug 632936

13 years agoUpdated Spanish translation
Jorge González [Mon, 25 Oct 2010 14:26:28 +0000 (16:26 +0200)]
Updated Spanish translation

13 years agoFix make distcheck as gtkcomboboxentry does not exist anymore
Richard Hughes [Mon, 25 Oct 2010 09:20:10 +0000 (10:20 +0100)]
Fix make distcheck as gtkcomboboxentry does not exist anymore

13 years agoUpdated Galician translations
Fran Diéguez [Sun, 24 Oct 2010 23:13:13 +0000 (01:13 +0200)]
Updated Galician translations

13 years agoFix typo.
Ignacio Casal Quinteiro [Sun, 24 Oct 2010 20:51:51 +0000 (22:51 +0200)]
Fix typo.

13 years agoGtkCalendar: turn into a no-window widget
Matthias Clasen [Sun, 24 Oct 2010 05:22:13 +0000 (07:22 +0200)]
GtkCalendar: turn into a no-window widget

After these changes, GtkCalendar only has a few input-only windows
left for catching input events. All drawing goes to the parent
window now.

13 years agoBring back lost functionality
Matthias Clasen [Sun, 24 Oct 2010 05:21:37 +0000 (07:21 +0200)]
Bring back lost functionality

Double-click to mark/unmark was lost a while ago.

Also add easy RTL testing.

13 years agoFill out the bug section
Matthias Clasen [Sat, 23 Oct 2010 22:38:37 +0000 (00:38 +0200)]
Fill out the bug section

13 years agoUpdated Arabic translation
Khaled Hosny [Sun, 24 Oct 2010 10:04:02 +0000 (12:04 +0200)]
Updated Arabic translation

13 years agoFix up docs
Matthias Clasen [Sat, 23 Oct 2010 21:02:40 +0000 (23:02 +0200)]
Fix up docs

13 years agoAdd a unique->GtkApplication migration guide
Matthias Clasen [Sat, 23 Oct 2010 20:51:38 +0000 (22:51 +0200)]
Add a unique->GtkApplication migration guide

13 years agoSome GtkApplication cleanups
Matthias Clasen [Sat, 23 Oct 2010 19:24:24 +0000 (21:24 +0200)]
Some GtkApplication cleanups

Remove no-longer-needed vfuncs, no longer existing functions,
and improve the docs here and there.

13 years agoFix doc build
Matthias Clasen [Sat, 23 Oct 2010 19:23:22 +0000 (21:23 +0200)]
Fix doc build

13 years agoRevert the id-column patch
Matthias Clasen [Sat, 23 Oct 2010 17:28:05 +0000 (19:28 +0200)]
Revert the id-column patch

It didn't quite turn out as I wanted it.
I'll put it in bug 619148 for now.

13 years agoFixed fallout from GtkScrollable patches.
Tristan Van Berkom [Sat, 23 Oct 2010 13:50:25 +0000 (22:50 +0900)]
Fixed fallout from GtkScrollable patches.

The scrollable patch removed set_scroll_adjustments (NULL, NULL) from
gtk_tree_view_init() which ensured the treeview would have adjustments
at all times, this patch adds set_v/hadjustment (NULL) to _init to ensure
the same thing (without it, there are crashes when trying to access the
adjustments notably from set_headers_visible() in gedit).

13 years agoUpdated Spanish translation
Jorge González [Sat, 23 Oct 2010 12:25:35 +0000 (14:25 +0200)]
Updated Spanish translation

13 years agoFixed push/pop_recursion_check() to not fire warnings for expected code.
Tristan Van Berkom [Sat, 23 Oct 2010 11:03:41 +0000 (20:03 +0900)]
Fixed push/pop_recursion_check() to not fire warnings for expected code.

I.e. Since we are now calling get_preferred_width() to ensure a good 'for_size'
for get_height_for_width() we need to avoid warning about this internal expected
recursion.

13 years agodocs: GtkComboBoxText: more fixes
Javier Jardón [Sat, 23 Oct 2010 01:03:50 +0000 (03:03 +0200)]
docs: GtkComboBoxText: more fixes

13 years agodocs: Some fixes in GtkComboboxText notations
Javier Jardón [Sat, 23 Oct 2010 00:52:24 +0000 (02:52 +0200)]
docs: Some fixes in GtkComboboxText notations

13 years agoUpdated Hebrew translation.
Yaron Shahrabani [Sat, 23 Oct 2010 00:40:54 +0000 (02:40 +0200)]
Updated Hebrew translation.

13 years agoFix distcheck
Matthias Clasen [Fri, 22 Oct 2010 22:23:17 +0000 (00:23 +0200)]
Fix distcheck

13 years agoNEWS for 2.91.2
Matthias Clasen [Fri, 22 Oct 2010 22:06:39 +0000 (00:06 +0200)]
NEWS for 2.91.2

13 years agoAdd a way to associate numeric ids with combobox values
Matthias Clasen [Fri, 22 Oct 2010 21:33:30 +0000 (23:33 +0200)]
Add a way to associate numeric ids with combobox values

This will let us use combo boxes as property editors for
GSettings enmerations easily.

13 years agogtkadjustment: Move documentation to inline comments
Javier Jardón [Fri, 22 Oct 2010 22:16:27 +0000 (00:16 +0200)]
gtkadjustment: Move documentation to inline comments

13 years agogtkscrollbar: Move documentation to inline comments
Javier Jardón [Fri, 22 Oct 2010 20:41:55 +0000 (22:41 +0200)]
gtkscrollbar: Move documentation to inline comments

13 years agogtktreemodelfilter: Move documentation to inline comments
Javier Jardón [Fri, 22 Oct 2010 20:32:10 +0000 (22:32 +0200)]
gtktreemodelfilter: Move documentation to inline comments

13 years agogtktreeselection: Move documentation to inline comments
Javier Jardón [Fri, 22 Oct 2010 20:24:36 +0000 (22:24 +0200)]
gtktreeselection: Move documentation to inline comments

13 years agogtktreesortable: Move documentation to inline comments
Javier Jardón [Fri, 22 Oct 2010 20:10:03 +0000 (22:10 +0200)]
gtktreesortable: Move documentation to inline comments

13 years agogtktreeviewcolumn: Move documentation to inline comments
Javier Jardón [Fri, 22 Oct 2010 19:59:08 +0000 (21:59 +0200)]
gtktreeviewcolumn: Move documentation to inline comments

13 years agogtktreestore: Move documentation to inline comments
Javier Jardón [Fri, 22 Oct 2010 19:47:46 +0000 (21:47 +0200)]
gtktreestore: Move documentation to inline comments

13 years agoGtkBuilder: Prepare for parsing GdkRGBA types.
Carlos Garnacho [Fri, 22 Oct 2010 16:53:54 +0000 (18:53 +0200)]
GtkBuilder: Prepare for parsing GdkRGBA types.

13 years agoGtkCellRendererText: Add [foreground|background]-rgba properties
Carlos Garnacho [Fri, 22 Oct 2010 16:33:07 +0000 (18:33 +0200)]
GtkCellRendererText: Add [foreground|background]-rgba properties

These properties use GdkRGBA to render the cell renderer's content.
Note that Pango attributes are used to render the foreground color,
so the alpha value is currently ignored.

13 years agoGtkCellRenderer: Add ::cell-background-rgba property
Carlos Garnacho [Fri, 22 Oct 2010 16:07:08 +0000 (18:07 +0200)]
GtkCellRenderer: Add ::cell-background-rgba property

This property uses GdkRGBA in order to render the cell renderer's
background.

13 years agoGtkColorButton: Add API to deal with GdkRGBA.
Carlos Garnacho [Fri, 22 Oct 2010 15:58:24 +0000 (17:58 +0200)]
GtkColorButton: Add API to deal with GdkRGBA.

13 years agoGtkColorSelection: Add API to deal with GdkRGBA.
Carlos Garnacho [Fri, 22 Oct 2010 15:56:21 +0000 (17:56 +0200)]
GtkColorSelection: Add API to deal with GdkRGBA.

The hook to change the global palette is still unchanged, it is quite
tied to GdkColor and the color format used to store the palette in
GtkSettings.

13 years agoMake gtk_icon_info_load_symbolic() Take GdkRGBA colors.
Carlos Garnacho [Fri, 22 Oct 2010 12:21:34 +0000 (14:21 +0200)]
Make gtk_icon_info_load_symbolic() Take GdkRGBA colors.

13 years agoGtkCellView: Add gtk_cell_view_set_background_rgba()
Carlos Garnacho [Fri, 22 Oct 2010 11:01:54 +0000 (13:01 +0200)]
GtkCellView: Add gtk_cell_view_set_background_rgba()

A ::background-rgba property was also added, this API is meant
to replace the gtk_cell_view_set_background_color() call.

13 years agoGdkWindow: Add gdk_window_set_background_rgba()
Carlos Garnacho [Thu, 21 Oct 2010 13:26:40 +0000 (15:26 +0200)]
GdkWindow: Add gdk_window_set_background_rgba()

This new function takes a GdkRGBA in order to set the background to
an alpha color. Keep in mind that RGBA visuals and a composited environment
are still necessary to have an alpha background displayed.

13 years agoAdd GdkRGBA struct to supersede GdkColor
Carlos Garnacho [Thu, 21 Oct 2010 13:23:48 +0000 (15:23 +0200)]
Add GdkRGBA struct to supersede GdkColor

GdkRGBA is a boxed struct similar to GdkColor, with the difference
that it stores alpha information as well, and colors are stored in
[0..1] doubles, in the cairo spirit.

gdk_cairo_set_source_rgba() has been also added to allow easier handling
of this new type.

13 years agoPoint to GtkGrid from the GtkBox and GtkTable docs
Matthias Clasen [Fri, 22 Oct 2010 17:59:29 +0000 (19:59 +0200)]
Point to GtkGrid from the GtkBox and GtkTable docs

13 years agoRemove some warnings
Matthias Clasen [Fri, 22 Oct 2010 17:28:32 +0000 (19:28 +0200)]
Remove some warnings

13 years agoRemove GtkScrollablePolicy again
Matthias Clasen [Fri, 22 Oct 2010 17:20:26 +0000 (19:20 +0200)]
Remove GtkScrollablePolicy again

This was a miscommunication, the properties need to live elsewhere.

13 years agoMove min-display-width/height to GtkScrolledWindow
Matthias Clasen [Fri, 22 Oct 2010 16:46:33 +0000 (18:46 +0200)]
Move min-display-width/height to GtkScrolledWindow

It is just too annoying to have to implement these properties in
every scrollable. Instead, we now have ::min-content-height/width
in GtkScrolledWindow.

We also add GtkScrollablePolicy to determine how to size the
scrollable content.

13 years agorecent-manager: Coalesce multiple changes
Emmanuele Bassi [Fri, 22 Oct 2010 15:12:16 +0000 (16:12 +0100)]
recent-manager: Coalesce multiple changes

Since the ::changed implementation of GtkRecentManager implies a
synchronous write operation, when we receive multiple requests to emit a
::changed signal we might end up blocking.

This change coalesces multiple ::changed emission requests using the
following sequence:

  • the first request will install a timeout in 250 ms, which will
    emit the ::changed signal

  • each further request while the timeout has not been emitted
    will increase a counter

      ‣ if the counter reaches 250 before the timeout has been
        emitted, then the RecentManager will remove the timeout
        source and force a signal emission and reset the counter

This sequence should guarantee that frequent ::changed emission requests
are coalesced, and also guarantee that we don't let them dangle for too
long.

https://bugzilla.gnome.org/show_bug.cgi?id=616997

13 years agoDon't declare various unused variables in gtk_grid_set_orientation
Christian Dywan [Fri, 22 Oct 2010 17:05:40 +0000 (19:05 +0200)]
Don't declare various unused variables in gtk_grid_set_orientation

13 years agoAssign all g_signal_connect() and friends to gulong variables
Alberto Garcia [Fri, 8 Oct 2010 00:37:23 +0000 (02:37 +0200)]
Assign all g_signal_connect() and friends to gulong variables

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=87821

13 years agoGtkExpander: avoid use of gtk_get_event_widget()
Javier Jardón [Fri, 22 Oct 2010 16:14:10 +0000 (18:14 +0200)]
GtkExpander: avoid use of gtk_get_event_widget()

We can compare the window to the window instead of the widget to the widget.

13 years agodocs: Add gtk-doc notation
Javier Jardón [Fri, 22 Oct 2010 15:56:00 +0000 (17:56 +0200)]
docs: Add gtk-doc notation

to emphasize that GtkMisc and GtkAdjustment are not encouraged in new code

13 years agogtk: undef DISABLE_DEPRECATED around including our own header
Michael Natterer [Fri, 22 Oct 2010 15:09:48 +0000 (17:09 +0200)]
gtk: undef DISABLE_DEPRECATED around including our own header

so we can see our own deprecated API and don't get warnings.

13 years agogtk: use the new scrollable API to get to the scroll adjustments
Michael Natterer [Fri, 22 Oct 2010 15:09:23 +0000 (17:09 +0200)]
gtk: use the new scrollable API to get to the scroll adjustments

13 years agoFix make dist now that gtkcomboboxentry does not exist
Richard Hughes [Fri, 22 Oct 2010 15:07:26 +0000 (16:07 +0100)]
Fix make dist now that gtkcomboboxentry does not exist

13 years agoFixed problems with combination of height-for-width apis and
Tristan Van Berkom [Fri, 22 Oct 2010 15:04:46 +0000 (00:04 +0900)]
Fixed problems with combination of height-for-width apis and
alignment/margin vfuncs adjust_size_request/allocation

Now get_height_for_width() will internally update the for_width
before passing it to the real height_for_width() vfunc, allowing
margins and extra space for alignments to be stripped, thus requesting
sufficient height for greater than natural widths (and also accounting
for margins properly). Test case adjusted in testadjustsize to ensure
proper behavior.

13 years agogtk: use the new scrollable API to get scroll adjustments
Michael Natterer [Fri, 22 Oct 2010 15:03:21 +0000 (17:03 +0200)]
gtk: use the new scrollable API to get scroll adjustments

13 years agogtk: fix tool palette scroll adjustment setting
Michael Natterer [Fri, 22 Oct 2010 15:01:58 +0000 (17:01 +0200)]
gtk: fix tool palette scroll adjustment setting

Create a new adjustment if there was *no* adjustment passed in, not
the other way around. Also remove unused function
gtk_tool_palette_set_adjustment().