summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into places-sidebarFederico Mena Quintero2013-02-13948-62331/+89072
|\ | | | | | | | | | | | | Conflicts: docs/reference/gtk/gtk-docs.sgml gtk/gtkfilechooserdefault.c gtk/org.gtk.Settings.FileChooser.gschema.xml
| * filechooserbutton: Add tests for SELECT_FOLDER mode with the dialog activeFederico Mena Quintero2013-02-131-0/+51
| | | | | | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooser: Oops, cancel a file operation that was missingFederico Mena Quintero2013-02-132-13/+6
| | | | | | | | | | | | In addition, remove a list of pending_cancellables that was no longer being used. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooserbutton: Add a battery of tests for GtkFileChooserButtonFederico Mena Quintero2013-02-131-113/+545
| | | | | | | | | | | | | | | | | | These are generic tests that can test the button in all of its modes, instead of hand-written tests for each combination. Some tests fail currently. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooserbutton: In SELECT_FOLDER mode, consider an empty selection to ↵Federico Mena Quintero2013-02-131-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | mean current_folder If the user didn't explicitly select anything, BUT the file chooser button has a current_folder set, do the same as what GtkFileChooserDefault would do: return the current folder as the selection. This makes the tests in tests/filechooser pass! Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooserbutton: Keep track of the current_folder while the dialog is inactiveFederico Mena Quintero2013-02-131-7/+80
| | | | | | | | | | | | This is analogous to keeping the selection while the dialog is inactive. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooser: Fix castFederico Mena Quintero2013-02-131-1/+1
| |
| * filechooserbutton: Remove unused function prototypesFederico Mena Quintero2013-02-131-11/+0
| |
| * filechooserbutton: Restore to an empty previous selection properlyFederico Mena Quintero2013-02-131-5/+14
| | | | | | | | | | | | | | | | | | If no file was originally selected in the GtkFileChooserButton, then its internal dialog is brought up and cancelled, then we need to restore the selection back to none. GtkFileChooser, though, doesn't like to select a NULL file, so call _unselect_all() in that condition. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooserbutton: Add test for setting/getting the current folder; ↵Federico Mena Quintero2013-02-131-3/+28
| | | | | | | | | | | | currently fails Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooserbutton: Fix preserving the selection after cancelling the dialogFederico Mena Quintero2013-02-131-14/+127
| | | | | | | | | | | | | | | | The button's underlying file chooser dialog should not be used to store the file selection while the dialog is unmapped. Instead, the file chooser button now stores the selection itself. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooser: Remove some unused codeFederico Mena Quintero2013-02-131-10/+0
| | | | | | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooserbutton: Simplify the code to preserve the selection while the ↵Federico Mena Quintero2013-02-131-27/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | dialog is running It used to fetch a possibly multiple selection from the GtkFileChooserDialog, and then pick just the first item from the selection list. But since GtkFileChooserButton operates in single-selection mode only, it can simply use gtk_file_chooser_get_file() instead. Also, the right way to reset the selection for GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER is with gtk_file_chooser_select_file(), not with _set_current_folder_file(). Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooserbutton: Don't set a starting folder in the underlying dialogFederico Mena Quintero2013-02-131-25/+0
| | | | | | | | Let the dialog decide by itself.
| * filechooser: Test canceling the dialog inside a GtkFileChooserButtonFederico Mena Quintero2013-02-131-0/+48
| | | | | | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooser: Add a couple of tests for GtkFileChooserButton; they fail nowFederico Mena Quintero2013-02-131-4/+58
| | | | | | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooser: Do tests with g_assert_cmpstr(), not g_assert(passed)Federico Mena Quintero2013-02-131-42/+16
| | | | | | | | | | | | This lets us see exactly what failed, instead of just seeing a boolean error value. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooser: Move some of the tests to GTestDataFuncFederico Mena Quintero2013-02-131-49/+68
| | | | | | | | | | | | | | | | This code came from a home-grown testing mechanism, which didn't aggregate tests into a test suite; it just ran them one by one. Here we move some of that machinery to GTestDataFunc for more flexibility in running tests. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
| * filechooser: Get the filechooser tests to buildFederico Mena Quintero2013-02-132-13/+19
| | | | | | | | Some are ifdef-ed out with BROKEN_TESTS, but at least the tests will compile for now.
| * Added scroll and touch events to GtkToolPaletteJuan Pablo Ugarte2013-02-131-1/+3
| |
| * filechooser: follow the gtk-recent-files-enabled GtkSettingCosimo Cecchi2013-02-132-1/+24
| | | | | | | | | | | | Avoid showing the Recent files entry if the setting is FALSE. https://bugzilla.gnome.org/show_bug.cgi?id=693709
| * recentmanager: follow gtk-recent-files-enabled GtkSettingCosimo Cecchi2013-02-131-5/+30
| | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=693724
| * settings: add a gtk-recent-files-enabled GtkSettingCosimo Cecchi2013-02-132-2/+21
| | | | | | | | | | | | | | Backed by an XSetting, so g-s-d can set it according to the GSettings value. https://bugzilla.gnome.org/show_bug.cgi?id=693724
| * wayland: Handle wl_output in GdkWaylandScreenJan Arne Petersen2013-02-133-71/+85
| | | | | | | | | | Expose information about outputs in GdkScreen (gdk_screen_get_n_monitors and gdk_screen_get_monitor_*).
| * Add opacity_group hackAlexander Larsson2013-02-121-9/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds a way to get the gtk_widget_set_opacity liike behaviour of retargeting GdkWindows and exposing every child in ::draw, without actually having an alpha. This is needed if you're doing more complex things such as cross fading of widgets. We do this as a hack by using opacity values that round to 255 yet not really 1.0 in order to avoid having some magical API call for this mainly internal call. https://bugzilla.gnome.org/show_bug.cgi?id=687842
| * wayland: skip pointer and keyboard events without a surfaceThomas Wood2013-02-121-0/+12
| | | | | | | | | | | | | | Pointer and keyboard events can be received after the surface has been destroyed, in which case the surface will be NULL. https://bugzilla.gnome.org/show_bug.cgi?id=693338
| * gdkwindow: don't use last_slave for the source device if it is NULLThomas Wood2013-02-121-1/+8
| | | | | | | | | | | | | | | | Some backends do not have slave devices, which means last_slave may be NULL. Use the current device as the source device if last_slave is NULL when synthesizing a crossing event. https://bugzilla.gnome.org/show_bug.cgi?id=692411
| * wayland: set the "transient inactive" flag on tooltip surfacesThomas Wood2013-02-121-3/+10
| | | | | | | | | | | | | | This prevents the tooltip surfaces from taking the focus away from the parent surface. https://bugzilla.gnome.org/show_bug.cgi?id=693313
| * tooltip: set the transient parent when using the Wayland backendThomas Wood2013-02-121-0/+19
| | | | | | | | | | | | | | Set the transient parent window on tooltips so that they can be positioned correctly when using the Wayland backend. https://bugzilla.gnome.org/show_bug.cgi?id=693313
| * Update Arabic translationsKhaled Hosny2013-02-121-217/+364
| |
| * gtkcellrenderertext: Sink floating entry before using as signal argumentSimon Feltman2013-02-111-1/+5
| | | | | | | | | | | | | | | | | | Sink the GtkEntry assigned to the private structure of GtkCellRendererText before signals containing it as an argument are sent out. This keeps language bindings from sinking the reference and then destroying the entry when the signal closure is finished. https://bugzilla.gnome.org/show_bug.cgi?id=693400
| * Remove remnants of localization from gtk-demoMatthias Clasen2013-02-111-1/+1
| | | | | | | | | | gtk-demo isn't localized at this point. https://bugzilla.gnome.org/show_bug.cgi?id=681578
| * Clean up the opacity handlingAlexander Larsson2013-02-111-86/+67
| | | | | | | | | | | | This cleans up the internals but doesn't really change the behaviour. https://bugzilla.gnome.org/show_bug.cgi?id=687842
| * Fix compiler warningsAdel Gadllah2013-02-112-2/+0
| | | | | | | | Remove two unused variables.
| * Mention the de-facto standard filename extensionMatthias Clasen2013-02-111-1/+1
| | | | | | | | | | | | GtkBuilder files are commonly named .ui - mention that in the docs. https://bugzilla.gnome.org/show_bug.cgi?id=590325
| * Plug a few memory leaksMatthias Clasen2013-02-111-1/+3
| | | | | | | | | | | | The accessibles for icon view items were not properly freed in all cases. https://bugzilla.gnome.org/show_bug.cgi?id=683311
| * Correct the documentation for how to set accessible namesMatthias Clasen2013-02-101-1/+1
| | | | | | | | | | | | The example in the GtkWidget docs was referring to a nonexisting AtkObject::name property. The correct property name is accessible-name.
| * Add a test for setting accessible name from gtkbuilderMatthias Clasen2013-02-102-5/+36
| | | | | | | | This is wrongly documented in the GtkWidget docs.
| * Updated Lithuanian translationAurimas Černius2013-02-091-182/+176
| |
| * Revert "Updated Malayalam Localization"Anish A2013-02-081-234/+282
| | | | | | | | This reverts commit 434f07944bbd5997a71ced13d8b5e402ecaf4c8f.
| * Updated Malayalam LocalizationAnish A2013-02-081-282/+234
| |
| * Revert "Visual C++: Update gtka11y projects completion"Rico Tzschichholz2013-02-089-31/+31
| | | | | | | | | | | | This broke 'make dist' on linux. This reverts commit ecf2a9471b4dd440709ffa4ae7c3efb5741dfaa5.
| * Revert "Drop things that break distcheck"Rico Tzschichholz2013-02-082-0/+37
| | | | | | | | This reverts commit 2204f120839fbcebfab665fea0b70ed4176d7466.
| * css: Add opacity reftestAlexander Larsson2013-02-074-0/+191
| | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=687842
| * css: Support opacityAlexander Larsson2013-02-073-35/+83
| | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=687842
| * Add singleton for css number 1.0Alexander Larsson2013-02-071-3/+6
| | | | | | | | | | | | This will be nice as this is will be the default for opacity. https://bugzilla.gnome.org/show_bug.cgi?id=687842
| * TextHandle: Don't draw handles if not visibleAlexander Larsson2013-02-071-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | When calling gtk_widget_draw() on the entry gtk_cairo_should_draw_window() will return TRUE for all windows. This is used when rendering a widget to somewhere other than the screen, and its now used for transparent widgets. This caused the texthandle to always draw itself and terminate the draw handler for the entry. Instead we now only draw the markers when really visible, plus we return FALSE to avoid stopping the entry drawing. https://bugzilla.gnome.org/show_bug.cgi?id=687842
| * Add widget transparency test to testgtkAlexander Larsson2013-02-071-0/+113
| | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=687842
| * Add gtk_widget_get/set_opacityAlexander Larsson2013-02-075-50/+272
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds gtk_widget_get/set_opacity, as well as a GtkWidget.opacity property. Additionally it deprectates gtk_window_get/set_opacity and removes the GtkWindow.opacity property (in preference for the new identical inherited property from GtkWidget, which should be ABI/API compat). The implementation is using the new gdk_window_set_opacity child window support for windowed widgets, and cairo_push/pop_group() bracketing in gtk_widget_draw() for non-window widgets. https://bugzilla.gnome.org/show_bug.cgi?id=687842
| * Add gtk_widget_(un)register_windowAlexander Larsson2013-02-0742-112/+183
| | | | | | | | | | | | | | | | | | | | | | | | This replaces the previously hardcoded calls to gdk_window_set_user_data, and also lets us track which windows are a part of a widget. Old code should continue working as is, but new features that require the windows may not work perfectly. We need this for the transparent widget support to work, as we need to specially mark the windows of child widgets. https://bugzilla.gnome.org/show_bug.cgi?id=687842