summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserbutton.c
Commit message (Collapse)AuthorAgeFilesLines
* GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-201-1/+1
| | | | | | | | | | | | | | | This is an automated change doing these command: git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface git sed -f g gtk_widget_set_window gtk_widget_set_surface git sed -f g gtk_widget_get_window gtk_widget_get_surface git sed -f g gtk_widget_register_window gtk_widget_register_surface git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface git checkout NEWS*
* The big versioning cleanupMatthias Clasen2018-02-061-20/+0
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* file chooser button: Stop connecting to ::delete-eventMatthias Clasen2018-01-161-15/+1
| | | | We can just use GtkWindow::hide-on-close.
* file button: Don't leak rowsMatthias Clasen2018-01-051-1/+4
| | | | | | The file chooser button manually manages the memory of data in its model, so it needs to explicitly free the rows.
* dnd: Remove "delete" argument from gtk_drag_finish()Benjamin Otte2017-12-101-1/+1
| | | | | | | The argument is ignored by anything but X11. It's treated like suggested_action == MOVE. So do that in gtk_drag_finish(), too.
* dnd: Remove x/y coordinates from drag-data-receivedBenjamin Otte2017-12-051-5/+0
| | | | | | This is in preparation of using input streams to show that these coordinates aren't needed most of the time and can otherwise be saved during GtkWidget::drag-drop.
* gdk: Make GdkContentFormats immutableBenjamin Otte2017-11-201-2/+2
|
* contentformats: Rename GtkTargetListBenjamin Otte2017-11-201-5/+5
| | | | It's now called GdkContentsFormat
* gtk: Intern css namesMatthias Clasen2017-11-171-1/+1
| | | | This avoids a bunch of strdups at startup.
* selection: Remove the info uintBenjamin Otte2017-11-161-50/+30
| | | | | | | | | Instead of allowing people to pass a uint user-data, insist on them comparing mime types. The user data was a uint instead of a pointer anyway, so uniqueness could not be guaranteed and it caused more issues than it was worth. And that's ignoring the fact that it basically wasn't used.
* filechooserbutton: icon size is always 16Matthias Clasen2017-11-151-20/+11
| | | | So define it that way.
* image: Remove icon-size argument from icon settersMatthias Clasen2017-11-151-5/+5
| | | | | | | | Instead, add a function gtk_image_set_icon_size() for the cases where overriding the icon size is necessary. Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear() no longer unsets the icon size.
* dnd: Make GtkDragDest and GtkDragSource use GtkTargetListBenjamin Otte2017-11-151-5/+4
| | | | | This gets rid of GtkTargetEntry in the API and consistently uses GtkTargetList.
* filechooserbutton: Use GIconsMatthias Clasen2017-11-081-113/+66
| | | | This lets use avoid much of the symbolic icon rendering api.
* widget: Remove gtk_widget_has_screen()Benjamin Otte2017-10-311-9/+7
| | | | All widgets always have a screen (or display).
* widget: Turn screen-changed signal into display-changedBenjamin Otte2017-10-311-8/+7
|
* FileChooserButton: Avoid unref()ing a null modelDaniel Boles2017-10-071-1/+2
|
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-0/+4
| | | | | | | | | | | | | | | | | | | This patch makes that work using 1 of 2 options: 1. Add all missing enums to the switch statement or 2. Cast the switch argument to a uint to avoid having to do that (mostly for GdkEventType). I even found a bug while doing that: clearing a GtkImage with a surface did not notify thae surface property. The reason for enabling this flag even though it is tedious at times is that it is very useful when adding values to an enum, because it makes GTK immediately warn about all the switch statements where this enum is relevant. And I expect changes to enums to be frequent during the GTK4 development cycle.
* filechooserbutton: Don't leak priv->modelTimm Bäder2017-10-061-0/+2
|
* widget: Add baseline and out_clip parameters to size-allocateTimm Bäder2017-07-191-7/+5
| | | | | | | | | | | Since setting a clip is mandatory for almost all widgets, we can as well change the size-allocate signature to include a out_clip parameter, just like GtkCssGadget did. And since we now always propagate baselines, we might as well pass that one on to size-allocate. This way we can also make sure to transform the clip returned from size-allocate to parent-coordinates, i.e. the same coordinate space priv->allocation is in.
* set clip of more widgetsTimm Bäder2017-07-191-2/+4
|
* Remove now useless snapshot implementationsTimm Bäder2017-07-191-11/+0
|
* Chain up in size-allocate implementationsTimm Bäder2017-05-011-0/+2
| | | | Otherwise we're not setting an allocation at all.
* filechooserbutton: Show/hide appropriate childTimm Bäder2017-04-241-0/+4
|
* filechooserbutton: Hide the combobox by defaultTimm Bäder2017-03-311-1/+1
|
* filechooserbutton: Be a GtkWidgetTimm Bäder2017-01-201-52/+107
| | | | | Instead of subclassing GtkBox to have 2 child widgets, subclass GtkWidget and only render one of them.
* filechooserbutton: Remove deprecated APITimm Bäder2016-10-181-46/+0
|
* filechooserbutton: Remove unnecessary declarationEmmanuele Bassi2016-10-171-2/+0
|
* Remove GtkIconFactoryTimm Bäder2016-10-161-1/+0
| | | | Move the icon size lookup API into gtkicontheme.c
* Use NULL for generic marshallers in g_signal_new()Benjamin Otte2016-08-291-1/+1
| | | | | glib will use the correct marshaller automatically. And as a side effect, we also get all glib optimizations, like a va marshaller.
* docs: point to suggested api for deprecated functionsStefan Sauer2016-06-091-9/+13
| | | | | We deprecated a bunch of _focus_on_click() functions. Point to the new API in GtkWidget.
* dnd: Move GtkDragDest to a separate fileMatthias Clasen2016-03-251-0/+1
| | | | | | This follows what was done for GtkDragSource in 415030d25f2552d3937ee3c394c50d22c5382982 and shaves another 500 lines off gtkdnd.c.
* file chooser button: Set a CSS nameMatthias Clasen2016-03-111-0/+2
| | | | This lets us differentiate the main node from regular boxes.
* filechooserbutton: Fix drag highlight problemsMatthias Clasen2016-03-111-0/+24
| | | | | | This widget is a bit unusual in that it is a box that acts as the drop target, while the visible content is a child of the box. Propagate :drop(active) to the child to make the highlight visible.
* widget: Pass a GtkCssStyleChange instead of a bitmaskBenjamin Otte2015-12-131-2/+2
|
* css: Query icon theme from style, not from settingsBenjamin Otte2015-12-021-6/+5
| | | | | No need to look at the settings when the CSS has a property for the icon theme.
* Add gtk_native_dialog_destroy()Alexander Larsson2015-11-111-1/+5
| | | | | | | Its very easy to get extra references to the NativeDialog so that when you release your last reference any visible dialog is not hidden. We handle this by adding a destroy method similar to how you destroy regular toplevels.
* GtkFileChooserButton: Use native dialogsAlexander Larsson2015-11-051-78/+153
| | | | | Unless you explicitly set the dialog constructor property we use a native dialog (GtkFileChooserNative).
* file chooser button: Remove an unused variableMatthias Clasen2015-11-031-2/+0
|
* Deprecate widget-specific :focus-on-click propertiesFlorian Müllner2015-11-031-40/+2
| | | | | | | | | The differences between the existing properties and the newly added GtkWidget:focus-on-click property are minimal (different owner_type in GParamSpec), so it is extremely unlikely that dropping the former would break anything. https://bugzilla.gnome.org/show_bug.cgi?id=757269
* Use stupid quotes instead of dumb quotesMatthias Clasen2015-09-231-2/+2
| | | | | | Following a similar change in GLib a while ago. 'bla' may by stupid, but it looks less dumb than `bla'.
* file chooser button: Fix some refcounting confusionMatthias Clasen2015-08-061-8/+4
| | | | | | | | | | | | | | | | | | | | | | | GtkFileSystem has a complicated way to handle cancellables. You keep the cancellable pointer that is returned by _gtk_file_system_get_info and similar methods so that you can cancel the operation, but you do not own a reference to it. The only place where it is ok to unref a cancellable is in your callback, which gets handed a cancellable that you need to unref at the end. You are expected to compare it to the pointer you stashed away to find out if the operation has already been superseded by a newer call, in which case you disregard the results. GtkFileChooserButton was following these rules for most of the cancellables it keeps around, but it was sometimes unreffing the cancellables that are stored in the model, which could lead to refcount confusion and crashes. This commit makes it follow the rules for that case too, which fixes the crash in the bug below, and does not show up any leaks in valgrind under light testing. https://bugzilla.gnome.org/show_bug.cgi?id=737804
* Code cleanupMatthias Clasen2015-07-311-7/+4
| | | | | | Use g_slist_free_full more consistently. This commit just converts the obvious cases where g_slist_forall is directly followed by g_slist_free.
* GtkFileChooserButton: Don't update icon/label so oftenTimm Bäder2015-07-171-2/+10
| | | | | | | | | | | They were updated in style-changed, causing the label to get set to (None), then to the actual file name again a frame later, both of the updates cause the GtkFileChooserButton to resize, possibly to the minimal width, causing the layout to jump. Fix this by only updating icon/label in style-updated when the icon theme actually changed, which is the only case we care about here. https://bugzilla.gnome.org/show_bug.cgi?id=752509
* Clean up some unfortunate formattingMatthias Clasen2015-03-221-3/+4
| | | | "if (...) do" just looks wrong.
* file chooser button: Make dnd work as expectedMatthias Clasen2015-01-291-4/+2
| | | | | | Update the button contents when accepting a drop. https://bugzilla.gnome.org/show_bug.cgi?id=743451
* Avoid picking up long description as translator commentMatthias Clasen2014-08-221-1/+1
| | | | | Rearrange a few lines to help xgettext avoid picking up the long description of GtkFileChooserButton as translator comment.
* gtk: Don't use GObjectClass.constructorJasper St. Pierre2014-06-261-18/+7
| | | | Use the newer constructed instead, which has a fast path in GObject.
* Trivial formatting fixMatthias Clasen2014-06-131-4/+2
|
* gtk: add missing type annotations ported from Vala bindingsEvan Nemerson2014-05-271-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=730745