- 13 Sep, 2010 8 commits
-
-
Havoc Pennington authored
Did not update uses in other files because the plan is to get rid of those other uses anyhow. So don't want to make this function available in the header.
-
Havoc Pennington authored
This is better than peeking aux info then testing != NULL in several ways: - it returns const aux info so if we don't create we can't write - it ensures that the default we assume if aux_info is NULL is the same as the default we set if we've created the aux info - it avoids typing in != NULL checks
-
Havoc Pennington authored
GtkFrame, GtkComboBox, GtkExpander, GtkMenu, GtkWrapBox These are all the examples I could find so far. https://bugzilla.gnome.org/show_bug.cgi?id=628829
-
Havoc Pennington authored
We are not re-entrant and there is no reason for widgets to do this, most likely they'll just get unexpected bugs because the wrappers may modify the request. Computing the request should logically rely only on the widget itself, not on any adjustments caused by set_size_request, size groups, and so forth. https://bugzilla.gnome.org/show_bug.cgi?id=628829
-
Havoc Pennington authored
In GtkBin and GtkWidget we tried to provide handy defaults that call get_width if there's no get_width_for_height and get_height for get_height_for_width. However, they used the wrapper API on GtkSizeRequest instead of chaining directly to the other method implementation. This could result in all kinds of surprising behavior, for example, get_width_for_height() would now already include the effects of set_size_request(). If nothing else it's inefficient. But it's just conceptually wrong, because to chain to another implementation, we should call the other implementation, not call a wrapper around the other implementation (when we're already inside a previous invocation of the wrapper, i.e. compute_size_for_orientation() ends up reinvoking itself in the same orientation on the same object which it pretty likely isn't intending to do) https://bugzilla.gnome.org/show_bug.cgi?id=628829
-
Havoc Pennington authored
32K of border ought to be enough for any pixel dimensions. At least until screens are so huge we start using doubles. This saves a nice 64 bits of space when we have a GtkBorder stored somewhere. Signed integers are used to avoid surprising unsigned math issues. Just search GTK's whole git log from inception for "unsigned" if you want to find any number of commits fixing signed/unsigned bugs. https://bugzilla.gnome.org/show_bug.cgi?id=629387
-
Javier Jardón authored
GScanner token field is declared as GTokenType instead a guint See Glib bug: https://bugzilla.gnome.org/show_bug.cgi?id=627890 Fixes https://bugzilla.gnome.org/show_bug.cgi?id=627962
-
Javier Jardón authored
Point to gdk_device_manager_get_client_pointer(), not gdk_display_get_client_pointer().
-
- 12 Sep, 2010 1 commit
-
-
Benjamin Otte authored
When writing the original code I erroneously assumed that the current point of the cairo context would be saved by cairo_save/restore(), but of course the current point is part of the path and therefor isn't saved. Also do a cairo_new_path() before rendering any text so that we are sure the text ends up at the right spot.
-
- 11 Sep, 2010 5 commits
-
-
Matthias Clasen authored
We need to use gdk_threads_add_idle, in order to keep GDK code under the GDK lock. Bug 629277
-
Javier Jardón authored
-
Javier Jardón authored
This reverts commit 65b9fc3e.
-
Javier Jardón authored
-
Javier Jardón authored
Signed-off-by:
Christian Dywan <christian@twotoasts.de>
-
- 10 Sep, 2010 9 commits
-
-
Matthias Clasen authored
-
Matthias Clasen authored
Followup to bug 629093
-
Mike Gorse authored
-
Mike Gorse authored
-
Kjartan Maraas authored
-
Matthias Clasen authored
-
Matthias Clasen authored
-
Matthias Clasen authored
-
Matthias Clasen authored
-
- 09 Sep, 2010 17 commits
-
-
Matthias Clasen authored
-
Matthias Clasen authored
This was the last exported variable; it wasn't multihead safe, and there's easy replacement with gdk_display_get_default(). Also drop the GDK_DISPLAY() macro which was just a wrapper around the variable.
-
Matthias Clasen authored
-
Tristan Van Berkom authored
gtk_widget_set_window() does not add a reference to the owned window... this is an exception to most gtk_foo_set_bar() functions where as it acts as if it were named gtk_widget_take_window(). Adding note to the docs to avoid people giving the window to the widget and naturally proceeding to unref the window.
-
Benjamin Otte authored
-
Benjamin Otte authored
-
Tor Lillqvist authored
Load Wintab32.dll from an absolute path. A proper Wintab32.dll, if present, should be in the Windows system directory, so load it from there.
-
Tor Lillqvist authored
-
Tor Lillqvist authored
-
Tor Lillqvist authored
-
Tristan Van Berkom authored
Fixed issues in my previous patch for bug 626939 removing GtkRequisition cache: these widgets monitor the previous requested size and decide whether to queue a resize when the content changes based on it's prior request.
-
Tristan Van Berkom authored
Now that we have a private data installed directly on the GtkWidget instance it makes no sense to cache the size requests on widget qdata. This change will generally make GTK+ memory less fragmented as well as significantly speed up the size request process.
-
Tor Lillqvist authored
-
Tor Lillqvist authored
Rename the gtk_major_version() etc functions I introduced yesterday to start with gtk_get. Avoids misleading results in client programs whose developers that don't notice the change or the compiler warnings, and when recompiling against gtk3 then use the function addresses as the version numbers.
-
Matthias Clasen authored
-
Matthias Clasen authored
With the demise of GtkList and GtkTree, it has GtkMenuItem as sole derived class, and is not really adding any value as a separate class. Its few useful features have been merged into GtkMenuItem. Bug 629104
-
Javier Jardón authored
This completes commit bd277fad
-