summaryrefslogtreecommitdiff
path: root/gtk/gtkprinteroptionwidget.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not release the GFile prematurelyEmmanuele Bassi2020-05-121-5/+2
| | | | | | | Otherwise we won't be able to access it to get the URI for the GtkPrinterOption. This fixes a regression introduced in commit 5f070ff2333.
* Replace most remaining uses of container apiMatthias Clasen2020-05-111-13/+16
| | | | These are all on GtkBox or enumerating children.
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-05-111-1/+1
|\ | | | | | | | | print-editor: Bring back the menubar See merge request GNOME/gtk!1875
| * printeroptionwidget: Avoid a criticalMatthias Clasen2020-05-111-1/+1
| | | | | | | | | | | | The new_location can be NULL, as we clearly knew earlier in the function. We've forgotten about that by the time we unref it :(
* | Replace gtk_widget_destroy everywhereMatthias Clasen2020-05-111-34/+6
| | | | | | | | | | Replace all remaining uses of gtk_widget_destroy by gtk_container_remove or g_object_unref.
* | Use gtk_window_destroyMatthias Clasen2020-05-111-1/+1
|/ | | | | Replace calls to gtk_widget_destroy on windows with gtk_window_destroy.
* Use gtk_combo_box_set_child throughoutMatthias Clasen2020-05-041-4/+4
|
* Remove overwrite confirmation machinery from GtkFileChooserEmmanuele Bassi2020-02-221-3/+0
| | | | | Overwrite confirmation should not be optional, and it should not loop into application code to create their own dialog and user response.
* Remove filename/URI API from GtkFileChooserEmmanuele Bassi2020-02-221-33/+37
| | | | | | | | | | | | GtkFileChooser's API predates GIO by a few years, so it started off with filenames and URI as character arrays. After introducing GIO as a dependency, the API included GFile-based entry points. It's much more appropriate to use GFile everywhere, as we want to encourage people to use GIO instead of passing random bytes to low level POSIX API. See: #2455
* marshallers: add missing g_cclosure_marshal_VOID__VOID fixesChristian Hergert2019-05-291-1/+1
|
* Stop using gtk_widget_get_toplevelMatthias Clasen2019-05-281-1/+1
| | | | All uses of it can be replaced by gtk_widget_get_root.
* entry, spin button: Drop redundant APIMatthias Clasen2019-02-281-5/+5
| | | | Avoid duplicating GtkEditable APIs. Port existing users.
* all: Don't warn about deprecated gtk_window_present usageBastien Nocera2019-02-251-0/+2
| | | | Avoid compilation warnings about internal users of gtk_window_present().
* Stop using gtk_box_pack_endTimm Bäder2019-01-231-9/+9
| | | | It might soon go away!
* image: Remove icon-size argument from icon settersMatthias Clasen2017-11-151-1/+1
| | | | | | | | 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.
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-0/+8
| | | | | | | | | | | | | | | | | | | 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.
* box: Remove fill child propertyTimm Bäder2017-04-251-11/+9
| | | | GtkWidget:halign and GtkWidget:valign are sufficient
* box: Remove expand child propertyTimm Bäder2017-04-251-9/+9
| | | | GtkWidget already has hexpand/vexpand properties.
* box: Remove 'padding' child propertyTimm Bäder2016-10-161-10/+10
|
* print dialog: More baseline alignmentMatthias Clasen2016-02-211-0/+3
| | | | | Some places were missing the right valign setting to make baselines line up properly.
* Intern all signal names beforehandMatthias Clasen2015-09-121-1/+1
| | | | This avoids pointless allocations
* docs: use proper quotesWilliam Jon McCann2014-02-051-1/+1
|
* docs: don't use gtkdoc style for regular commentsWilliam Jon McCann2014-01-211-1/+1
|
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-7/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Start migrating internals away from GtkStockWilliam Jon McCann2013-06-241-3/+2
|
* print: disconnect source_changed_handler on printeroptionwidget finalizeAlban Browaeys2013-04-141-0/+2
| | | | | | | | | | Printing a web page without window.print (which still segfault), that is Ctrl+P is fixed (does not attempt to execute the source_changed_handler on a printeroptionwidget that has been destroyed) by disconnecting this handler in the printeroptionwidget finalize. https://bugzilla.gnome.org/show_bug.cgi?id=696622
* Fix mnemonic activation for some printer option widgetsMatthias Clasen2012-08-311-5/+10
| | | | | | The file type radio group has a mnemonic on its label, but activating it did not work, since GtkPrinterOptionWidget did not know to forward the activation to one of the buttons.
* Improve print to file options in print dialogSebastian Geiger2012-08-311-129/+171
| | | | | | | | | | | | | | | | | | | * This patch gets rid of the separated fields for selecting a print to file target by removing the folder selection button and the entry. It is replaced by a browse button, which opens a file selection dialog, that can select both the path AND the filename. * If the filename is relativ to the home folder it will substitute ~/ instead of the home folder. Additionally if the resulting filename is longer than 30 characters, it cut of the first part and replace it by '...' so that the button text never gets too long. https://bugzilla.gnome.org/show_bug.cgi?id=682129
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Improve PICKONE_* handling in GtkPrinterOptionWidget (bug #543520)Benjamin Berg2012-01-061-17/+71
| | | | | | This patch modifies GtkPrinterOptionWidget to support loading them again. It also allows the user to enter values from the dropdown list to select the item.
* print to file: fixed lost filename in guiTimothy Arceri2011-12-071-1/+10
| | | | | | | Stop widget creating an event before updating both directory and filename values. https://bugzilla.gnome.org/show_bug.cgi?id=603823
* Clean up unneeded includesMatthias Clasen2011-08-281-18/+8
|
* gtkprinteroptionwidget: gtk_misc_set_alignmentDiego Celix2011-06-101-2/+4
| | | | | | | | Replacing the function gtk_misc_set_alignment () with gtk_widget_set_halign () and gtk_widget_set_valign () in gtk/gtkprinteroptionwidget.c https://bugzilla.gnome.org/show_bug.cgi?id=650762
* Trivial optimisation in GtkPrinterOptionWidgetMarek Kašík2011-06-081-5/+2
| | | | Signed-off-by: Richard Hughes <richard@hughsie.com>
* Fix 93957459d8613eeb9413b4e5a32d4ccec6036160Richard Hughes2011-06-081-1/+1
| | | | It seems GtkHBox got dropped since my patch was reviewed. Oopsie.
* Add a GtkPrinterOptionWidget type of INFO to just show informational text ↵Richard Hughes2011-06-081-0/+26
| | | | | | from the print backend This fixes https://bugzilla.gnome.org/show_bug.cgi?id=652103
* Drop unneeded includes: gtkalignment.hMatthias Clasen2011-06-071-1/+0
|
* GtkPrinterOptionWidget: derive from GtkBox, not GtkHBoxMatthias Clasen2011-06-071-2/+3
|
* gtk: remove "gboolean homogeneous" from gtk_box_new()Michael Natterer2010-11-021-1/+1
| | | | Because it's FALSE in virtually all use cases.
* Use gtk_box_new() instead gtk_[v|h]box_new()Javier Jardón2010-10-301-1/+1
|
* print: Make things compile againBenjamin Otte2010-10-181-11/+4
| | | | Remove workaround for entries - the general codepath should just work.
* Deprecate GtkComboBoxEntry in favor of added properties to GtkComboBoxTristan Van Berkom2010-10-131-4/+3
| | | | | | | | | | | | | GtkComboBox now sports a construct-only "has-entry" property which decides if it uses a GtkEntry to allow additional user input. Also it has a new "entry-text-column" to fetch strings for the entry from the model. This patch deprecates the GtkComboBoxEntry and updates the rest of GTK+ to use the new semantics on GtkComboBox instead. GtkComboBoxEntry will be removed altogether before GTK+ 3, in a later commit.
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Set an appropriate title on the folder selection dialog for print-to-fileMatthias Clasen2010-04-291-1/+1
|
* Fix missing GTK_WIDGET cast on printer option widget in construct_widgetsChristian Dywan2010-01-041-2/+2
|
* Make mnemonic hiding work for printer option widgetsMatthias Clasen2009-12-201-1/+3
| | | | By making the widget itself insensitive.
* Accept "true" as a true value in printer settingsMatthias Clasen2009-09-091-1/+1
| | | | | | Some of the settings come directly from cups config files, which have no case sensitivity requirement, so we should not be more picky. Bug 594652.
* Print when Enter pressed in certain GtkEntries of the print dialogMarek Kasik2009-08-111-0/+4
| | | | | | | | Print when Enter pressed in Name entry or Command Line entry in the print dialog (#564695). Add gtk_printer_option_set_activates_default() function and gtk_printer_option_get_activates_default() function to control behaviour of GtkPrinterOptionWidget.
* Bug 344522 – support non-local destination files (GtkPrint):Marek Kasik2008-09-301-19/+29
| | | | | | | | | | | | | 2008-09-30 Marek Kasik <mkasik@redhat.com> Bug 344522 – support non-local destination files (GtkPrint): * gtk/gtkprintunixdialog.c * gtk/gtkprinteroptionwidget.c: Process URI instead of filename. * modules/printbackends/file/gtkprintbackendfile.c: Add ability to save files on non-local filesystems. svn path=/trunk/; revision=21552
* Actually use the utf-8 version of the filename. (#485301, Takao Fujiwara)Matthias Clasen2007-10-161-1/+1
| | | | | | | | | | 2007-10-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprinteroptionwidget.c (update_widgets): Actually use the utf-8 version of the filename. (#485301, Takao Fujiwara) svn path=/trunk/; revision=18912