Mohammed Sadiq
7ddad8aa62
examples: Remove unused variables
2018-05-12 17:32:16 +05:30
Mohammed Sadiq
65b423eb05
examples: Simplify counting buffer lines
...
We do have a gtk_text_buffer_get_line_count() function
to get the line count.
2018-05-09 15:28:15 +05:30
Mohammed Sadiq
88ddda6d60
examples: Remove explicit gtk_widget_show()
...
In gtk4, widgets are visible by default.
2018-05-09 15:27:55 +05:30
Mohammed Sadiq
8fcc401e05
examples: Take advantage of user_data passed
...
The last parameter of the signal callback from .ui
is the template's object from which the class is
derived.
And so, we already have access to the window object.
Let's just use it.
2018-05-08 18:55:48 +05:30
Mohammed Sadiq
bf1c344443
examples: Don't use private members for final classes
...
Only derivable classes are required to have private members
so that derived classes can't override them.
2018-05-08 14:34:43 +05:30
Mohammed Sadiq
22ae9d0884
examples: use G_DECLARE_FINAL_TYPE in applications
...
G_DECLARE_FINAL_TYPE was introduced in glib 2.44.
We shall use that now so that lots of boilerplate code can
be reduced.
https://bugzilla.gnome.org/show_bug.cgi?id=770278
2016-09-10 09:01:08 -04:00
Matthias Clasen
380ca9bc56
Make include order consistent in example applications
...
Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=740537
2014-11-28 23:57:16 -05:00
Matthias Clasen
055e4722f5
Add the new exampleapp to the docs
2013-11-16 17:04:30 -05:00
Matthias Clasen
7265d9d9ad
Add another example application
...
This new step sets the headerbar as titlebar, and enables
fallback for the app menu.
2013-11-16 16:09:56 -05:00