summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add Meson subproject supportwip/tingping/mesonPatrick Griffis2017-02-174-0/+331
| | | | | | With contrubitions from: - Zeeshan Ali <zeenix@gmail.com> - Nirbheek Chauhan <nirbheek@centricular.com>
* main-box: Enclose the view in a GtkFrameDebarshi Ray2017-02-031-18/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=774914
* main-icon-box-child: Use the content-tile style class for themingDebarshi Ray2017-01-271-0/+4
|
* main-box-item: Remove unused virtual function pointerDebarshi Ray2017-01-261-1/+0
| | | | | | Fallout from bacedd9fa569bf77e60d43e15ba58aa427dee622 https://bugzilla.gnome.org/show_bug.cgi?id=774914
* build: Add a main-box flag to LIBGD_INITwip/rishi/main-boxDebarshi Ray2017-01-074-0/+29
| | | | | | This includes GdMainBox, and everything under main-icon-box. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* Add GdMainBoxDebarshi Ray2017-01-072-0/+647
| | | | | | | | This is a widget that can use different GdMainBoxGeneric implementations to render multiple GdMainBoxItems, and makes it easy to switch between them. eg., it can be a list or a grid of items. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* build: Add a main-icon-box flag to LIBGD_INITDebarshi Ray2017-01-074-0/+35
| | | | | | | This includes GdMainIconBox, GdMainIconBoxChild, and everything under _box-common and gtk-hacks. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* Add GdMainIconBoxDebarshi Ray2017-01-072-0/+1080
| | | | | | | It is GdMainBoxGeneric implementation that uses GtkFlowBox to render multiple GdMainBoxItems in a grid of GdMainIconBoxChildren. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* Add GdMainIconBoxChildDebarshi Ray2017-01-072-0/+425
| | | | | | | | It is a GdMainBoxChild implementation that uses a GtkFlowBoxChild to render a single GdMainBoxItem. It is meant to be used with GdMainIconBox. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* build: Add a _box-common flag to LIBGD_INITDebarshi Ray2017-01-074-0/+38
| | | | | | | | This includes GdMainBoxChild, GdMainBoxGeneric, and GdMainBoxItem interfaces. It is meant to be used by those that implement these interfaces. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* Add GdMainBoxGenericDebarshi Ray2017-01-072-0/+567
| | | | | | | This is the interface that a GtkWidget must implement to be able to contain multiple GdMainBoxChild implementations inside a GdMainBox. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* Add GdMainBoxChildDebarshi Ray2017-01-032-0/+240
| | | | | | | This is the interface that a GtkWidget must implement to be able to render a single GdMainBoxItem. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* Add GdMainBoxItemDebarshi Ray2016-12-212-0/+298
| | | | | | | This is the interface that a GObject must implement to get rendered by a GdMainBox. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* icon-utils, main-view: Export the DnD counter creation codeDebarshi Ray2016-12-213-106/+117
| | | | | | | We will also need it for GdMainIconBox, so it is better to share the same code. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* icon-utils, main-view: Export the image surface copying codeDebarshi Ray2016-12-214-25/+36
| | | | | | | We will also need it for GdMainIconBox, so it is better to share the same code. https://bugzilla.gnome.org/show_bug.cgi?id=774914
* main-view: Fix the size and offset of the counter icon on HiDpiDebarshi Ray2016-12-151-7/+24
| | | | | | | | | | | | | | | | | The cairo_surface_create_similar API expects the width and height to be in device-space units, not pixels. So either we need to scale down the outputs of cairo_image_surface_get_{width, height}, or we need to use cairo_surface_create_similar_image. I prefer the latter because it makes it obvious that we are interested in image surfaces. Note that unlike cairo_surface_create_similar, we need to manually set the device scale because cairo_surface_create_similar_image doesn't inherit it. For the rest of the drawing and positioning code, we continue using device-space units as before. https://bugzilla.gnome.org/show_bug.cgi?id=776133
* main-view: Don't let the Cairo surface get bigger while copyingDebarshi Ray2016-12-151-3/+8
| | | | | | | | | | | | | | The cairo_surface_create_similar API expects the width and height to be in device-space units, not pixels. So either we need to scale down the outputs of cairo_image_surface_get_{width, height}, or we need to use cairo_surface_create_similar_image. I prefer the latter because we are already using other image surface API and pixel values. Note that unlike cairo_surface_create_similar, we need to manually set the device scale because cairo_surface_create_similar_image doesn't inherit it. https://bugzilla.gnome.org/show_bug.cgi?id=776133
* main-icon-view: Drop the priv pointerDebarshi Ray2016-12-022-17/+25
| | | | | | | | | | The current GObject recommendation is to use the generated get_instance_private function instead of a separate priv pointer in the instance struct. The saves one pointer per class in the heirarchy multiplied by the number of instances of the type, and the function is fast enough because it only does pointer arithmetic. https://bugzilla.gnome.org/show_bug.cgi?id=774709
* main-view: Forget the last non-range selection when leaving the modeDebarshi Ray2016-11-271-3/+6
| | | | | | Fall out from b82e4c3722f4e83b429d9b72a9a20172fe3a7cd9 https://bugzilla.gnome.org/show_bug.cgi?id=775153
* Update gitignoreDebarshi Ray2016-11-261-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=775131
* tagged-entry: Reduce the priority of the default CSSDebarshi Ray2016-11-261-1/+1
| | | | | | | ... so that we don't compete with application-specific style information. https://bugzilla.gnome.org/show_bug.cgi?id=774835
* main-icon-view: Use G_ADD_PRIVATEDebarshi Ray2016-11-261-4/+2
| | | | | | | | | | This paves the way for improving our GObject use and reducing the amount of boilerplate. G_ADD_PRIVATE was introduced in GLib 2.38, which should be old enough for all users. https://bugzilla.gnome.org/show_bug.cgi?id=774709
* Remove GdHeaderButtonCosimo Cecchi2016-11-266-586/+0
| | | | | This was private functionality shared by GdMainToolbar and GdHeaderBar, which have been removed.
* Remove GdMainToolbarCosimo Cecchi2016-11-267-657/+0
| | | | This functionality can be achieved with GtkHeaderBar these days.
* Remove GdHeaderBarCosimo Cecchi2016-11-269-1537/+0
| | | | These days people can just use GtkHeaderBar.
* Remove GdStack and GdStackSwitcherCosimo Cecchi2016-11-2611-2170/+0
| | | | These days people can just use GtkStack and GtkStackSwitcher.
* Remove GdRevealerCosimo Cecchi2016-11-269-885/+0
| | | | These days people can just use GtkRevealer.
* main-view: Don't export the typedef for the private structureDebarshi Ray2016-11-212-2/+2
| | | | | | | | | We no longer have a priv pointer inside the struct, and G_DECLARE_DERIVABLE_TYPE has removed the need for the instance and class typedefs. Therefore, this is a good time to clean up the header and move the typedef for GdMainViewPrivate into the .c file. https://bugzilla.gnome.org/show_bug.cgi?id=774709
* main-view: Use G_DECLARE_DERIVABLE_TYPEDebarshi Ray2016-11-211-28/+1
| | | | | | This bumps our GLib requirement to 2.44. https://bugzilla.gnome.org/show_bug.cgi?id=774709
* main-view: Drop the priv pointerDebarshi Ray2016-11-212-124/+199
| | | | | | | | | | The current GObject recommendation is to use the generated get_instance_private function instead of a separate priv pointer in the instance struct. The saves one pointer per class in the heirarchy multiplied by the number of instances of the type, and the function is fast enough because it only does pointer arithmetic. https://bugzilla.gnome.org/show_bug.cgi?id=774709
* main-view: Use G_DEFINE_WITH_PRIVATEDebarshi Ray2016-11-211-3/+2
| | | | | | | | | | This paves the way for improving our GObject use and reducing the amount of boilerplate. G_DEFINE_WITH_WITH_PRIVATE was introduced in GLib 2.38, which should be old enough for all users. https://bugzilla.gnome.org/show_bug.cgi?id=774709
* tagged-entry: Fix missing GResource when using static libraryBastien Nocera2016-08-301-0/+3
| | | | | | | | | | gcc seems to be stripping away the "unused" gd_tagged_entry_get_resource() when linking it. Call the function to avoid the function being stripped away. See https://bugzilla.gnome.org/show_bug.cgi?id=770121 https://bugzilla.gnome.org/show_bug.cgi?id=770555
* build: Force creation of the resource .h fileBastien Nocera2016-08-301-1/+1
| | | | | | | | Otherwise automake will skip it as it is not included anywhere. See https://bugzilla.gnome.org/show_bug.cgi?id=770121 https://bugzilla.gnome.org/show_bug.cgi?id=770555
* Don't include git.mk in makefileMichael Catanzaro2016-08-071-2/+0
| | | | | | | | | | We have a .gitignore committed into version control, so we shouldn't be overwriting it. This defeats the purpose of using git.mk as we wind up with a dirty subproject after every build due to make rewriting our tracked .gitignore. And libgd itself does not use git.mk, so it shouldn't be here. https://bugzilla.gnome.org/show_bug.cgi?id=769616
* build: Fix incomplete distcheck fixBastien Nocera2015-12-171-2/+2
| | | | | | | 6eefe0edd03bfedb65e6fdefe7cde9f3a3da437f added the .gresource.xml to the distribution, but the CSS file it's supposed to include isn't distributed. Also remove the generated resource headers from the distribution.
* build: distribute gresource.xml file in tarballswip/swilmet/build-fixSébastien Wilmet2015-12-131-0/+1
|
* tagged-entry: add default CSS style for tagged entriesCosimo Cecchi2015-12-024-3/+40
| | | | | Instead of having to copy/paste this custom style in every application, install a default style provider.
* tagged-entry: Fix warnings with newer GTK+Bastien Nocera2015-12-021-7/+29
| | | | | | | | | | The tagged entry was generating loads of errors following CSS changes in GTK+ 3.19. See https://blogs.gnome.org/mclasen/2015/11/20/a-gtk-update/ for details and work-arounds. https://bugzilla.gnome.org/show_bug.cgi?id=758905
* two-lines-renderer: Fix warnings with newer GTK+Bastien Nocera2015-11-241-2/+9
| | | | | | | | | | The line renderer was generating loads of errors following CSS changes in GTK+ 3.19. See https://blogs.gnome.org/mclasen/2015/11/20/a-gtk-update/ for details and work-arounds. https://bugzilla.gnome.org/show_bug.cgi?id=758595
* two-lines-renderer: Fix typo in commentBastien Nocera2015-11-241-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=758595
* two-lines-renderer: Don't read uninitialized valuesDebarshi Ray2015-11-241-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=757020
* icon-utils: Add a for_scale() variant for gd_create_symbolic_iconDebarshi Ray2015-11-042-10/+37
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=757590
* icon-utils: Fix annotationDebarshi Ray2015-11-041-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=757590
* icon-utils: Don't pass a 'void *' where an 'int' is expectedDebarshi Ray2015-10-131-1/+1
| | | | | | Fall out from 1e049c22660d70132a3735d61d7a7daa957b59fc https://bugzilla.gnome.org/show_bug.cgi?id=756510
* Add an example to theme GdTaggedEntryCosimo Cecchi2015-09-242-1/+37
|
* GdTaggedEntry: Add a missing gtk_style_context_restore()Benjamin Otte2015-09-171-0/+1
| | | | | | | This could cause nasty side effects messing up the whole rendering of the GdTaggedEntry. https://bugzilla.gnome.org/show_bug.cgi?id=755136
* GdTaggedEntryTag: Use entry's style contextBenjamin Otte2015-08-281-15/+13
| | | | | | | Reuse the entry's style context via save()/restore() instead of creating a new style context all the time. Solves a bunch of styling problems, such as value inheritance.
* main-icon-view: Stop using deprecated propertyDebarshi Ray2015-08-051-1/+0
| | | | | | | | | Since 3.15.12, GtkCellRendererPixbuf always follows state and the follow-state property has been deprecated. This reverts ac4ae160ee92fcf7010d0d9420e6f71532627f80 https://bugzilla.gnome.org/show_bug.cgi?id=750413
* icon-utils: add missing prototypeCosimo Cecchi2015-06-301-0/+4
|
* icon-utils: add a method to embed a surface in a frameCosimo Cecchi2015-06-281-17/+55
| | | | | | | | | | | | It's a variant of gd_embed_image_in_frame() that takes a cairo_surface_t instead of a GdkPixbuf. gd_embed_image_in_frame() now is implemented on top of the surface variant. Note: while it may seem that this makes framing a pixbuf slower by adding a pixbuf->surface conversion, GTK+ already implements gtk_render_icon() on top of gtk_render_icon_surface() so it ends up being the same.