summaryrefslogtreecommitdiff
path: root/libxfce4ui/xfce-titled-dialog.c
Commit message (Collapse)AuthorAgeFilesLines
* Use headerbars for dialogs if Gtk/DialogsUseHeader is enabled (#14)Andre Miranda2022-02-211-17/+36
|
* Check if pixbuf is valid before unrefAndre Miranda2021-04-081-1/+5
|
* Don't leak pixbufSimon Steinbeiss2021-02-071-4/+9
|
* XfceTitledDialog: Add pixbuf support as fallbackSimon Steinbeiss2021-02-071-3/+12
| | | | | | Previously only icons set via gtk_window_set_icon_name were handled, now we also handle GdkPixbufs set by gtk_window_set_icon if no icon_name was set.
* Don't reserve vertical space for subtitles in headerbarsMaurizio Galli (m4u9)2021-01-101-0/+3
|
* Always perform sanity checkSimon Steinbeiss2020-11-241-1/+1
| | | | vs. only with debug output enabled.
* XfceTitledDialog: Fix erroneous check (Fixes #30)Simon Steinbeiss2020-11-231-1/+1
| | | | | Checking that the icon_name is not empty is the correct check, otherwise the icon never gets set with debug output enabled.
* Fixed two "Missing (transfer) annotation" warningsAlexander Schwinn2020-03-241-0/+2
|
* Drop unused declarationSimon Steinbeiss2020-01-131-1/+0
|
* XfceTitledDialog: Add _create_action_area, _add_button andSimon Steinbeiss2020-01-091-16/+153
| | | | | | | | | | | | | | | | _add_action_widget Three new API calls have been introduced in this commit to make it easier to use the XfceTitledDialogClass directly to create dialogs while still maintaining the layout of having both headerbar and action area in the dialog. * xfce_titled_dialog_create_action_area (to initially set up the dialog's custom action area) * xfce_titled_dialog_add_button (as a replacement for gtk_dialog_add_button) * xfce_titled_dialog_add_action_widget (as a replacement for gtk_dialog_add_action_widget)
* XfceTitledDialog: Make sure windows can be draggedSimon Steinbeiss2020-01-091-0/+1
| | | | | | As the constructed function of GtkDialog's parent class (GtkWindow) is responsible for being able to move the window by dragging the headerbar, we need to hook it up.
* Mark xfce_titled_dialog_new_with_buttons as deprecatedSimon Steinbeiss2020-01-091-0/+2
|
* Add guardsSimon Steinbeiss2020-01-091-0/+4
|
* XfceTitledDialog: Keep buttons in the action areaSimon Steinbeiss2020-01-091-0/+13
| | | | | | | | | | | | | Previously XfceTitledDialog would end up having its buttons moved to the headerbar by the constructed function of GtkDialog. By blocking this function we ensure that we have 1) a headerbar and 2) an action area. This is only desirable for XfceTitledDialog, which is a special kind of dialog (settings dialog). This commit fixes the behavior above when using the class directly.
* XfceTitledDialog: Also repack xfce_titled_dialog_newSimon Steinbeiss2020-01-091-9/+32
| | | | | While it is deprecated, it is easy to support the repacking and it will prevent visual breakage in less maintained projects/plugins.
* Introduce xfce_titled_dialog_set_default_responseSimon Steinbeiss2020-01-091-0/+83
| | | | | | This function works as a drop-in replacement for gtk_dialog_set_default_response and also relies on good portions of the original upstream code.
* Update docstringSimon Steinbeiss2020-01-091-0/+2
|
* XfceTitledDialog: Move buttons from headerbar to actionareaSimon Steinbeiss2020-01-091-2/+23
| | | | | | | | | | Instead of letting all buttons automatically end up in the dialog's headerbar we want to preserve the previous behavior of xfce_titled_dialog_new_with_mixed_buttons and keep buttons in the action area. This change breaks the functionality of gtk_dialog_set_default_response for which a replacement will have to be introduced.
* Switch XfceTitledDialog to headerbar layoutSimon Steinbeiss2020-01-091-54/+55
| | | | | | | | This means all dialogs (especially settings dialogs) using XfceTitledDialog will automatically use a GtkHeaderBar instead of the previous custom widgetry. The API for setting the dialog's subtitle remains, but is just a convenience function for gtk_header_bar_set_subtitle.
* Drop support for Gtk2Simon Steinbeiss2019-12-041-8/+0
| | | | | Signed-off-by: Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> Signed-off-by: Romain Bouvier <skunnyk@alteroot.org>
* Add api indices in gtk-docRomain B2017-12-151-0/+3
| | | | - This way we know since when version a function is available.
* Rename introspection GIR to 4ui-2.0 to match utilEric Koegel2017-06-241-6/+6
| | | | | Add introspection annotations and add a hello world python example.
* Add GtkDoc checksEric Koegel2017-06-111-0/+11
| | | | | | We add a documentation check during make check or distcheck to ensure new functions/objects added are properly added prior to release. This patch also cleans up all the current warnings.
* New function: xfce_titled_dialog_new_with_mixed_buttonsEric Koegel2016-06-071-0/+76
| | | | | | | | | | Using xfce_titled_dialog_new_with_buttons in Gtk3 results in buttons that cannot have icons except for STOCK icons. This is because it just calls gtk_dialog_add_button to create and add the buttons. With this new function, you specify an icon name, STOCK icon, or simply "" for no icon on the button followed by the button text and response id for each button.
* Compile GTK+-3 version of libxfce4ui when possible.Nick Schermer2012-09-211-9/+18
| | | | | | | | Provide a GTK3 version of the library next to the GTK2 version if GTK3 is found on the system. The same code is compiled twice. Porting of this code is also work of Stephan Arts.
* Drop G_CONST_RETURN macro.Nick Schermer2011-06-131-1/+1
|
* Fix mistake in previous commit.Nick Schermer2011-05-291-23/+5
| | | | | Connect in realize is not a good idea, however the inital update can be avoided in init.
* Cleanup the heading code.Nick Schermer2011-05-291-9/+24
| | | | | | | With the assumption this widget will not be made public anymore, we can strip a bunch of code. Also attach the window signals later in the titled-dialog so they are not triggered before we're actually going to show the window.
* Fix licenses.Nick Schermer2011-03-271-5/+4
|
* Move the visibility-alias stuff back in.Nick Schermer2009-10-221-0/+6
| | | | | | Also fix some wrong usage of CFLAGS and include libxfce4util in the libxfce4ui.h header, we did this in gui4 too so this makes porting easier.
* Drop visibility code and use new xdt functions.Nick Schermer2009-10-181-11/+5
|
* Fix some tiny stuff.Nick Schermer2009-07-081-1/+1
| | | | (Old svn revision: 30220)
* API changes requested by Brian.Nick Schermer2009-07-071-1/+2
| | | | | | | | | | | | | | | | | | | Rename xfce_execute to xfce_spawn. I've also renamed both functions to match Glib/Gdk. Remove xfce_gdk_pixbuf_new_from_inline_at_size and xfce_gtk_dialog_parse_parent. Use GtkWindows's for the parents of the dialogs. Add support for secondary text in the info, warnings and questions dialog functions. Rename the internal function xfce_message_dialog_vnew to xfce_message_dialog_new_valist. (Old svn revision: 30214)
* * Fix some compiler warningsNick Schermer2008-12-291-2/+0
| | | | (Old svn revision: 29060)
* * Inital importNick Schermer2008-01-051-0/+364
(Old svn revision: 26543)