diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c index 72dad1cff24f559bed4291f3c100421d1bf7537e..053c0fb0478c8ce4540c5534a9d54435b5b7b89f 100644 --- a/gtk/gtkactionbar.c +++ b/gtk/gtkactionbar.c @@ -34,11 +34,11 @@ /** * GtkActionBar: * - * `GtkActionBar` is designed to present contextual actions. + * Designed to present contextual actions. * * ![An example GtkActionBar](action-bar.png) * - * It is expected to be displayed below the content and expand + * `GtkActionBar` is expected to be displayed below the content and expand * horizontally to fill the area. * * It allows placing children at the start or the end. In addition, it @@ -242,11 +242,11 @@ gtk_action_bar_buildable_interface_init (GtkBuildableIface *iface) /** * gtk_action_bar_pack_start: - * @action_bar: A `GtkActionBar` - * @child: the `GtkWidget` to be added to @action_bar + * @action_bar: an action bar + * @child: the widget to be added * - * Adds @child to @action_bar, packed with reference to the - * start of the @action_bar. + * Adds a child to the action, packed with reference to the + * start of the action bar. */ void gtk_action_bar_pack_start (GtkActionBar *action_bar, @@ -257,11 +257,11 @@ gtk_action_bar_pack_start (GtkActionBar *action_bar, /** * gtk_action_bar_pack_end: - * @action_bar: A `GtkActionBar` - * @child: the `GtkWidget` to be added to @action_bar + * @action_bar: an action bar + * @child: the widget to be added * - * Adds @child to @action_bar, packed with reference to the - * end of the @action_bar. + * Adds a child to the action bar, packed with reference to the + * end of the action bar. */ void gtk_action_bar_pack_end (GtkActionBar *action_bar, @@ -272,10 +272,10 @@ gtk_action_bar_pack_end (GtkActionBar *action_bar, /** * gtk_action_bar_remove: - * @action_bar: a `GtkActionBar` - * @child: the `GtkWidget` to be removed + * @action_bar: an action bar + * @child: the widget to be removed * - * Removes a child from @action_bar. + * Removes a child from the action bar. */ void gtk_action_bar_remove (GtkActionBar *action_bar, @@ -294,10 +294,10 @@ gtk_action_bar_remove (GtkActionBar *action_bar, /** * gtk_action_bar_set_center_widget: - * @action_bar: a `GtkActionBar` + * @action_bar: an action bar * @center_widget: (nullable): a widget to use for the center * - * Sets the center widget for the `GtkActionBar`. + * Sets the center widget for the action bar. */ void gtk_action_bar_set_center_widget (GtkActionBar *action_bar, @@ -308,11 +308,11 @@ gtk_action_bar_set_center_widget (GtkActionBar *action_bar, /** * gtk_action_bar_get_center_widget: - * @action_bar: a `GtkActionBar` + * @action_bar: an action bsar * * Retrieves the center bar widget of the bar. * - * Returns: (transfer none) (nullable): the center `GtkWidget` + * Returns: (transfer none) (nullable): the center widget */ GtkWidget * gtk_action_bar_get_center_widget (GtkActionBar *action_bar) @@ -325,7 +325,7 @@ gtk_action_bar_get_center_widget (GtkActionBar *action_bar) /** * gtk_action_bar_new: * - * Creates a new `GtkActionBar` widget. + * Creates a new action bar widget. * * Returns: a new `GtkActionBar` */ @@ -337,12 +337,12 @@ gtk_action_bar_new (void) /** * gtk_action_bar_set_revealed: - * @action_bar: a `GtkActionBar` - * @revealed: The new value of the property + * @action_bar: an action bar + * @revealed: the new value for the property * * Reveals or conceals the content of the action bar. * - * Note: this does not show or hide @action_bar in the + * Note: this does not show or hide the action bar in the * [property@Gtk.Widget:visible] sense, so revealing has * no effect if the action bar is hidden. */ @@ -361,7 +361,7 @@ gtk_action_bar_set_revealed (GtkActionBar *action_bar, /** * gtk_action_bar_get_revealed: - * @action_bar: a `GtkActionBar` + * @action_bar: an action bar * * Gets whether the contents of the action bar are revealed. * diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c index f606ccd5204a9c8f56ee3632abfa556a6ddf2b18..b97e5fb1c9af19aec5b093d05b959f2c7e6f853e 100644 --- a/gtk/gtkapplication.c +++ b/gtk/gtkapplication.c @@ -43,19 +43,18 @@ /** * GtkApplication: * - * `GtkApplication` is a high-level API for writing applications. + * A high-level API for writing applications. * - * It supports many aspects of writing a GTK application in a convenient - * fashion, without enforcing a one-size-fits-all model. + * `GtkApplication` supports many aspects of writing a GTK application + * in a convenient fashion, without enforcing a one-size-fits-all model. * - * Currently, `GtkApplication` handles GTK initialization, application - * uniqueness, session management, provides some basic scriptability and - * desktop shell integration by exporting actions and menus and manages a - * list of toplevel windows whose life-cycle is automatically tied to the - * life-cycle of your application. + * Currently, it handles GTK initialization, application uniqueness, session + * management, provides some basic scriptability and desktop shell integration + * by exporting actions and menus and manages a list of toplevel windows whose + * life-cycle is automatically tied to the life-cycle of your application. * - * While `GtkApplication` works fine with plain [class@Gtk.Window]s, it is - * recommended to use it together with [class@Gtk.ApplicationWindow]. + * While `GtkApplication` works fine with plain [class@Gtk.Window]s, + * it is recommended to use it together with [class@Gtk.ApplicationWindow]. * * ## Automatic resources * @@ -550,11 +549,12 @@ gtk_application_class_init (GtkApplicationClass *class) /** * GtkApplication::window-added: - * @application: the `GtkApplication` which emitted the signal - * @window: the newly-added [class@Gtk.Window] + * @application: the application which emitted the signal + * @window: the newly-added window * - * Emitted when a [class@Gtk.Window] is added to `application` through - * [method@Gtk.Application.add_window]. + * Emitted when a window is added to an application. + * + * See [method@Gtk.Application.add_window]. */ gtk_application_signals[WINDOW_ADDED] = g_signal_new (I_("window-added"), GTK_TYPE_APPLICATION, G_SIGNAL_RUN_FIRST, @@ -565,10 +565,10 @@ gtk_application_class_init (GtkApplicationClass *class) /** * GtkApplication::window-removed: - * @application: the `GtkApplication` which emitted the signal - * @window: the [class@Gtk.Window] that is being removed + * @application: the application which emitted the signal + * @window: the window that is being removed * - * Emitted when a [class@Gtk.Window] is removed from `application`. + * Emitted when a window is removed from an application. * * This can happen as a side-effect of the window being destroyed * or explicitly through [method@Gtk.Application.remove_window]. @@ -582,13 +582,13 @@ gtk_application_class_init (GtkApplicationClass *class) /** * GtkApplication::query-end: - * @application: the `GtkApplication` which emitted the signal + * @application: the application which emitted the signal * * Emitted when the session manager is about to end the session. * * This signal is only emitted if [property@Gtk.Application:register-session] - * is `TRUE`. Applications can connect to this signal and call - * [method@Gtk.Application.inhibit] with `GTK_APPLICATION_INHIBIT_LOGOUT` + * is true. Applications can connect to this signal and call + * [method@Gtk.Application.inhibit] with [flags@Gtk.ApplicationInhibitFlags.logout] * to delay the end of the session until state has been saved. */ gtk_application_signals[QUERY_END] = @@ -601,7 +601,7 @@ gtk_application_class_init (GtkApplicationClass *class) /** * GtkApplication:register-session: * - * Set this property to `TRUE` to register with the session manager. + * Set this property to true to register with the session manager. * * This will make GTK track the session state (such as the * [property@Gtk.Application:screensaver-active] property). @@ -614,11 +614,11 @@ gtk_application_class_init (GtkApplicationClass *class) /** * GtkApplication:screensaver-active: * - * This property is `TRUE` if GTK believes that the screensaver is - * currently active. + * This property is true if GTK believes that the screensaver + * is currently active. * * GTK only tracks session state (including this) when - * [property@Gtk.Application:register-session] is set to %TRUE. + * [property@Gtk.Application:register-session] is set to true. * * Tracking the screensaver state is currently only supported on * Linux. @@ -631,7 +631,7 @@ gtk_application_class_init (GtkApplicationClass *class) /** * GtkApplication:menubar: * - * The `GMenuModel` to be used for the application's menu bar. + * The menu model to be used for the application's menu bar. */ gtk_application_props[PROP_MENUBAR] = g_param_spec_object ("menubar", NULL, NULL, @@ -656,21 +656,21 @@ gtk_application_class_init (GtkApplicationClass *class) * @application_id: (nullable): The application ID * @flags: the application flags * - * Creates a new `GtkApplication` instance. + * Creates a new application instance. * * When using `GtkApplication`, it is not necessary to call [func@Gtk.init] * manually. It is called as soon as the application gets registered as * the primary instance. * * Concretely, [func@Gtk.init] is called in the default handler for the - * `GApplication::startup` signal. Therefore, `GtkApplication` subclasses should - * always chain up in their `GApplication::startup` handler before using any GTK - * API. + * `GApplication::tartup` signal. Therefore, `GtkApplication` subclasses + * should always chain up in their [vfunc@GIO.Application.startup] handler + * before using any GTK API. * * Note that commandline arguments are not passed to [func@Gtk.init]. * - * If `application_id` is not %NULL, then it must be valid. See - * `g_application_id_is_valid()`. + * If `application_id` is not `NULL`, then it must be valid. See + * [func@Gio.Application.id_is_valid]. * * If no application ID is given then some features (most notably application * uniqueness) will be disabled. @@ -691,24 +691,23 @@ gtk_application_new (const char *application_id, /** * gtk_application_add_window: - * @application: a `GtkApplication` - * @window: a `GtkWindow` + * @application: an application + * @window: a window * - * Adds a window to `application`. + * Adds a window to the application. * - * This call can only happen after the `application` has started; + * This call can only happen after the application has started; * typically, you should add new application windows in response - * to the emission of the `GApplication::activate` signal. + * to the emission of the [signal@GIO.Application::activate] signal. * * This call is equivalent to setting the [property@Gtk.Window:application] - * property of `window` to `application`. + * property of the window to @application. * * Normally, the connection between the application and the window * will remain until the window is destroyed, but you can explicitly * remove it with [method@Gtk.Application.remove_window]. * - * GTK will keep the `application` running as long as it has - * any windows. + * GTK will keep the application running as long as it has any windows. **/ void gtk_application_add_window (GtkApplication *application, @@ -733,17 +732,17 @@ gtk_application_add_window (GtkApplication *application, /** * gtk_application_remove_window: - * @application: a `GtkApplication` - * @window: a `GtkWindow` + * @application: an pplication + * @window: a window * - * Remove a window from `application`. + * Remove a window from the application. * - * If `window` belongs to `application` then this call is equivalent to - * setting the [property@Gtk.Window:application] property of `window` to - * `NULL`. + * If the window belongs to the application then this call is + * equivalent to setting the [property@Gtk.Window:application] + * property of the window to `NULL`. * * The application may stop running as a result of a call to this - * function, if `window` was the last window of the `application`. + * function, if the window was the last window of the application. **/ void gtk_application_remove_window (GtkApplication *application, @@ -761,9 +760,9 @@ gtk_application_remove_window (GtkApplication *application, /** * gtk_application_get_windows: - * @application: a `GtkApplication` + * @application: an application * - * Gets a list of the [class@Gtk.Window] instances associated with `application`. + * Gets a list of the window associated with the application. * * The list is sorted by most recently focused window, such that the first * element is the currently focused window. (Useful for choosing a parent @@ -773,8 +772,7 @@ gtk_application_remove_window (GtkApplication *application, * only remain valid until the next focus change or window creation or * deletion. * - * Returns: (element-type GtkWindow) (transfer none): a `GList` of `GtkWindow` - * instances + * Returns: (element-type GtkWindow) (transfer none): the list of windows **/ GList * gtk_application_get_windows (GtkApplication *application) @@ -788,15 +786,15 @@ gtk_application_get_windows (GtkApplication *application) /** * gtk_application_get_window_by_id: - * @application: a `GtkApplication` + * @application: an application` * @id: an identifier number * - * Returns the [class@Gtk.ApplicationWindow] with the given ID. + * Returns the window with the given ID. * * The ID of a `GtkApplicationWindow` can be retrieved with * [method@Gtk.ApplicationWindow.get_id]. * - * Returns: (nullable) (transfer none): the window for the given `id` + * Returns: (nullable) (transfer none): the window for the given ID */ GtkWindow * gtk_application_get_window_by_id (GtkApplication *application, @@ -819,14 +817,14 @@ gtk_application_get_window_by_id (GtkApplication *application, /** * gtk_application_get_active_window: - * @application: a `GtkApplication` + * @application: an application * * Gets the “active” window for the application. * - * The active window is the one that was most recently focused (within - * the application). This window may not have the focus at the moment - * if another application has it — this is just the most - * recently-focused window within this application. + * The active window is the one that was most recently focused + * (within the application). This window may not have the focus + * at the moment if another application has it — this is just + * the most recently-focused window within this application. * * Returns: (transfer none) (nullable): the active window **/ @@ -852,19 +850,19 @@ gtk_application_update_accels (GtkApplication *application) /** * gtk_application_set_menubar: - * @application: a `GtkApplication` - * @menubar: (nullable): a `GMenuModel` + * @application: an application + * @menubar: (nullable): a menu model * - * Sets or unsets the menubar for windows of `application`. + * Sets or unsets the menubar for windows of the application. * * This is a menubar in the traditional sense. * * This can only be done in the primary instance of the application, - * after it has been registered. `GApplication::startup` is a good place - * to call this. + * after it has been registered. [vfunc@GIO.Application.startup] is + * a good place to call this. * * Depending on the desktop environment, this may appear at the top of - * each window, or at the top of the screen. In some environments, if + * each window, or at the top of the screen. In some environments, if * both the application menu and the menubar are set, the application * menu will be presented as if it were the first item of the menubar. * Other environments treat the two as completely separate — for example, @@ -895,12 +893,11 @@ gtk_application_set_menubar (GtkApplication *application, /** * gtk_application_get_menubar: - * @application: a `GtkApplication` + * @application: an application * - * Returns the menu model that has been set with - * [method@Gtk.Application.set_menubar]. + * Returns the menu model for the menu bar of the application. * - * Returns: (nullable) (transfer none): the menubar for windows of `application` + * Returns: (nullable) (transfer none): the menubar for windows of the application */ GMenuModel * gtk_application_get_menubar (GtkApplication *application) @@ -929,13 +926,13 @@ gtk_application_get_menubar (GtkApplication *application) /** * gtk_application_inhibit: - * @application: the `GtkApplication` - * @window: (nullable): a `GtkWindow` + * @application: the application + * @window: (nullable): a window * @flags: what types of actions should be inhibited * @reason: (nullable): a short, human-readable string that explains * why these operations are inhibited * - * Inform the session manager that certain types of actions should be + * Informs the session manager that certain types of actions should be * inhibited. * * This is not guaranteed to work on all platforms and for all types of @@ -943,7 +940,7 @@ gtk_application_get_menubar (GtkApplication *application) * * Applications should invoke this method when they begin an operation * that should not be interrupted, such as creating a CD or DVD. The - * types of actions that may be blocked are specified by the `flags` + * types of actions that may be blocked are specified by the @flags * parameter. When the application completes the operation it should * call [method@Gtk.Application.uninhibit] to remove the inhibitor. Note * that an application can have multiple inhibitors, and all of them must @@ -954,15 +951,18 @@ gtk_application_get_menubar (GtkApplication *application) * the action. In most cases, users will be given the option to force * the action to take place. * - * The `reason` message should be short and to the point. + * The @reason message should be short and to the point. * - * If `window` is given, the session manager may point the user to + * If a window is given, the session manager may point the user to * this window to find out more about why the action is inhibited. * - * Returns: A non-zero cookie that is used to uniquely identify this - * request. It should be used as an argument to [method@Gtk.Application.uninhibit] - * in order to remove the request. If the platform does not support - * inhibiting or the request failed for some reason, 0 is returned. + * The cookie tha tis returned by this function should be used as an + * argument to [method@Gtk.Application.uninhibit] in order to remove + * the request. + * + * Returns: A non-zero cookie that is used to uniquely identify this, or + * 0 if the platform does not support inhibiting or the request failed + * for some reason */ guint gtk_application_inhibit (GtkApplication *application, @@ -981,7 +981,7 @@ gtk_application_inhibit (GtkApplication *application, /** * gtk_application_uninhibit: - * @application: the `GtkApplication` + * @application: the application * @cookie: a cookie that was returned by [method@Gtk.Application.inhibit] * * Removes an inhibitor that has been previously established. @@ -1027,7 +1027,7 @@ gtk_application_get_application_accels (GtkApplication *application) /** * gtk_application_list_action_descriptions: - * @application: a `GtkApplication` + * @application: an application * * Lists the detailed action names which have associated accelerators. * @@ -1047,7 +1047,7 @@ gtk_application_list_action_descriptions (GtkApplication *application) /** * gtk_application_set_accels_for_action: - * @application: a `GtkApplication` + * @application: an application * @detailed_action_name: a detailed action name, specifying an action * and target to associate accelerators with * @accels: (array zero-terminated=1): a list of accelerators in the format @@ -1056,14 +1056,14 @@ gtk_application_list_action_descriptions (GtkApplication *application) * Sets zero or more keyboard accelerators that will trigger the * given action. * - * The first item in `accels` will be the primary accelerator, which may be - * displayed in the UI. + * The first item in @accels will be the primary accelerator, + * which may be displayed in the UI. * - * To remove all accelerators for an action, use an empty, zero-terminated - * array for `accels`. + * To remove all accelerators for an action, use an empty, + * zero-terminated array for @accels. * - * For the `detailed_action_name`, see `g_action_parse_detailed_name()` and - * `g_action_print_detailed_name()`. + * For the @detailed_action_name, see [func@Gio.Action.parse_detailed_name] + * and [Gio.Action.print_detailed_name]. */ void gtk_application_set_accels_for_action (GtkApplication *application, @@ -1090,7 +1090,7 @@ gtk_application_set_accels_for_action (GtkApplication *application, /** * gtk_application_get_accels_for_action: - * @application: a `GtkApplication` + * @application: an application * @detailed_action_name: a detailed action name, specifying an action * and target to obtain accelerators for * @@ -1098,7 +1098,7 @@ gtk_application_set_accels_for_action (GtkApplication *application, * the given action. * * Returns: (transfer full) (array zero-terminated=1) (element-type utf8): - * accelerators for `detailed_action_name` + * accelerators for @detailed_action_name */ char ** gtk_application_get_accels_for_action (GtkApplication *application, @@ -1115,10 +1115,10 @@ gtk_application_get_accels_for_action (GtkApplication *application, /** * gtk_application_get_actions_for_accel: - * @application: a `GtkApplication` + * @application: a application * @accel: an accelerator that can be parsed by [func@Gtk.accelerator_parse] * - * Returns the list of actions (possibly empty) that `accel` maps to. + * Returns the list of actions (possibly empty) that the accelerator maps to. * * Each item in the list is a detailed action name in the usual form. * @@ -1136,7 +1136,7 @@ gtk_application_get_accels_for_action (GtkApplication *application, * * If you are unsure, check it with [func@Gtk.accelerator_parse] first. * - * Returns: (transfer full): a %NULL-terminated array of actions for `accel` + * Returns: (transfer full): actions for @accel */ char ** gtk_application_get_actions_for_accel (GtkApplication *application, @@ -1192,8 +1192,8 @@ gtk_application_handle_window_map (GtkApplication *application, /** * gtk_application_get_menu_by_id: - * @application: a `GtkApplication` - * @id: the id of the menu to look up + * @application: an application + * @id: the ID of the menu to look up * * Gets a menu from automatically loaded resources. * @@ -1201,7 +1201,7 @@ gtk_application_handle_window_map (GtkApplication *application, * for more information. * * Returns: (nullable) (transfer none): Gets the menu with the - * given id from the automatically loaded resources + * given ID from the automatically loaded resources */ GMenu * gtk_application_get_menu_by_id (GtkApplication *application, diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index adf221c9114d3a923d3a9dbf92c6d6af0a02791d..101a590a5e1398652fd2f66388c74ba00e269c4c 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -34,18 +34,17 @@ /** * GtkApplicationWindow: * - * `GtkApplicationWindow` is a `GtkWindow` subclass that integrates with - * `GtkApplication`. + * A `GtkWindow` subclass that integrates with `GtkApplication`. * * Notably, `GtkApplicationWindow` can handle an application menubar. * - * This class implements the `GActionGroup` and `GActionMap` interfaces, - * to let you add window-specific actions that will be exported by the - * associated [class@Gtk.Application], together with its application-wide + * This class implements the [iface@Gio.ActionGroup] and [iface@Gio.ActionMap] + * interfaces, to let you add window-specific actions that will be exported + * by the associated [class@Gtk.Application], together with its application-wide * actions. Window-specific actions are prefixed with the “win.” * prefix and application-wide actions are prefixed with the “app.” * prefix. Actions must be addressed with the prefixed name when - * referring to them from a `GMenuModel`. + * referring to them from a menu model. * * Note that widgets that are placed inside a `GtkApplicationWindow` * can also activate these actions, if they implement the @@ -675,12 +674,12 @@ gtk_application_window_class_init (GtkApplicationWindowClass *class) /** * GtkApplicationWindow:show-menubar: * - * If this property is %TRUE, the window will display a menubar + * If this property is true, the window will display a menubar * unless it is shown by the desktop shell. * * See [method@Gtk.Application.set_menubar]. * - * If %FALSE, the window will not display a menubar, regardless + * If flse, the window will not display a menubar, regardless * of whether the desktop shell is showing it or not. */ gtk_application_window_properties[PROP_SHOW_MENUBAR] = @@ -691,7 +690,7 @@ gtk_application_window_class_init (GtkApplicationWindowClass *class) /** * gtk_application_window_new: - * @application: a `GtkApplication` + * @application: an application * * Creates a new `GtkApplicationWindow`. * @@ -709,12 +708,12 @@ gtk_application_window_new (GtkApplication *application) /** * gtk_application_window_get_show_menubar: - * @window: a `GtkApplicationWindow` + * @window: an application window * * Returns whether the window will display a menubar for the app menu * and menubar as needed. * - * Returns: %TRUE if @window will display a menubar when needed + * Returns: True if the window will display a menubar when needed */ gboolean gtk_application_window_get_show_menubar (GtkApplicationWindow *window) @@ -725,7 +724,7 @@ gtk_application_window_get_show_menubar (GtkApplicationWindow *window) /** * gtk_application_window_set_show_menubar: - * @window: a `GtkApplicationWindow` + * @window: an application window * @show_menubar: whether to show a menubar when needed * * Sets whether the window will display a menubar for the app menu @@ -752,14 +751,14 @@ gtk_application_window_set_show_menubar (GtkApplicationWindow *window, /** * gtk_application_window_get_id: - * @window: a `GtkApplicationWindow` + * @window: an application window * * Returns the unique ID of the window. * * If the window has not yet been added to a `GtkApplication`, returns `0`. * - * Returns: the unique ID for @window, or `0` if the window - * has not yet been added to a `GtkApplication` + * Returns: the unique ID for the window, or `0` if the window + * has not yet been added to an application */ guint gtk_application_window_get_id (GtkApplicationWindow *window) @@ -793,15 +792,15 @@ show_help_overlay (GSimpleAction *action, /** * gtk_application_window_set_help_overlay: - * @window: a `GtkApplicationWindow` - * @help_overlay: (nullable): a `GtkShortcutsWindow` + * @window: an application window + * @help_overlay: (nullable): a shortcuts window * * Associates a shortcuts window with the application window. * * Additionally, sets up an action with the name * `win.show-help-overlay` to present it. * - * @window takes responsibility for destroying @help_overlay. + * The window takes responsibility for destroying the help overlay. */ void gtk_application_window_set_help_overlay (GtkApplicationWindow *window, @@ -837,14 +836,14 @@ gtk_application_window_set_help_overlay (GtkApplicationWindow *window, /** * gtk_application_window_get_help_overlay: - * @window: a `GtkApplicationWindow` + * @window: an application window * * Gets the `GtkShortcutsWindow` that is associated with @window. * * See [method@Gtk.ApplicationWindow.set_help_overlay]. * * Returns: (transfer none) (nullable): the help overlay associated - * with @window + * with the window */ GtkShortcutsWindow * gtk_application_window_get_help_overlay (GtkApplicationWindow *window) diff --git a/gtk/gtkprintdialog.c b/gtk/gtkprintdialog.c index 5a86eaf6f0ece47d5c79191732b8cc04b8a352c5..658ff4aa7828c2a65eeb266ea9ddc90953d190bf 100644 --- a/gtk/gtkprintdialog.c +++ b/gtk/gtkprintdialog.c @@ -1765,7 +1765,6 @@ gtk_print_dialog_print_file (GtkPrintDialog *self, if (!gdk_display_should_use_portal (display, PORTAL_PRINT_INTERFACE, 0)) { - g_print ("Should not use portal. Ok\n"); if (setup == NULL || gtk_print_setup_get_printer (setup) == NULL) { GtkPrintUnixDialog *window; @@ -1784,7 +1783,6 @@ gtk_print_dialog_print_file (GtkPrintDialog *self, } else if (!ensure_portal_proxy (self, parent, &error)) { - g_print ("Should use portal. But no proxy\n"); g_task_return_new_error (task, GTK_DIALOG_ERROR, GTK_DIALOG_ERROR_FAILED, "The print portal is not available: %s", error->message); @@ -1793,7 +1791,6 @@ gtk_print_dialog_print_file (GtkPrintDialog *self, } else { - g_print ("Using portal. Ok\n"); if (parent && gtk_widget_is_visible (GTK_WIDGET (parent)) && gtk_window_export_handle (parent, print_window_handle_exported, task)) diff --git a/testsuite/meson.build b/testsuite/meson.build index 8fb7a99362660c502bc3cc9c5dca550aba359fc7..10e5513158a6553ed97fbf77eecf89c917dc822b 100644 --- a/testsuite/meson.build +++ b/testsuite/meson.build @@ -14,7 +14,7 @@ common_env = [ 'GTK_CSD=1', 'G_ENABLE_DIAGNOSTIC=0', 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir), - 'GDK_DEBUG=default-settings', + 'GDK_DEBUG=default-settings,no-portals', 'GTK_DEBUG=css', ] exclude_unstable = ['flaky', 'failing']