Commit Graph

646 Commits

Author SHA1 Message Date
Alberto Fanjul
c2594d4802 Revert "Update GtkSourceView dependency"
This reverts commit bdba5b756f.
2019-10-28 23:34:54 +01:00
Gaurav Agrawal
0ed296041d config for fonts 2019-10-17 05:48:20 +00:00
Alberto Fanjul
306e21a425 Don't ellipsize commit subject 2019-10-16 01:51:07 +02:00
Alberto Fanjul
0e79cd587e Avoid duplicating Signed-off-by signature 2019-10-16 01:09:45 +02:00
Gaurav Agrawal
4f7d98521b Support repository being null
repository can be null, so is not correct to access to its properties without checking it.
2019-06-21 07:51:44 +00:00
Martin Blanchard
bdba5b756f Update GtkSourceView dependency
fixes 131
2019-06-21 09:37:38 +02:00
Gaurav Agrawal
0340864a1b Log error on gravatar image retrieve
gravatar is retrieved using http get operation, log error if it fails
2019-05-23 08:02:08 +02:00
Gaurav Agrawal
79a10fbf87 Detect links in commit messages
Parse subject and body for a commit message and convert urls into links.

It is possible to read custom links config from ./git/config ini file:

example to parse issues and merge request for gitlab:

```
[gitg.custom-link "issues"]
   regexp=!([0-9]+)
   replacement=https://gitlab.gnome.org/GNOME/gitg/merge_requests/\1
   color = orange
[gitg.custom-link "merge.request"]
   regexp=#([0-9]+)
   replacement=https://gitlab.gnome.org/GNOME/gitg/merge_requests/\1
   color = green
```
2019-05-23 07:56:16 +02:00
Alberto Fanjul
90e9ea9666 Polish push action
- Avoid to connect to repo, that is managed by push operation
- Add access to ssh socket for flatpak
- Reload repo after push to reflect changes
2019-05-19 22:32:40 +02:00
Alberto Fanjul
1be2990fea Fix time sort mode
Fix topological/time sort mode
Save miss commits on same second until its parents are painted
2019-05-05 12:11:50 +02:00
jonykalavera
f689d8b32d Do not use arrays as properties 2019-05-02 04:19:49 +02:00
Ignazio Sgalmuzzo
d172282bfa Add push support 2019-04-24 04:49:41 +02:00
Gaurav Agrawal
d8ba28be76 Fix deprecation set_background 2019-04-05 14:24:09 +02:00
Adwait Rawat
cf61f15ad8 Fix deprecation menu.popup() 2019-04-04 22:47:31 +02:00
Adwait Rawat
96f3fada79 Load font with CSS
Avoid use deprecated method to update font

Co-authored-by: Adwait Rawat <adwait.rawat@gmail.com>
Co-authored-by: Gaurav Agrawal <agrawalgaurav1999@gmail.com>
2019-03-08 01:23:31 +01:00
Gaurav Agrawal
51d16acd5f Respect system fonts 2019-02-26 10:23:58 +00:00
Bilal Elmoussaoui
cc62927f4a meson: allow dual installation of the application
meson: set the schema path correctly

window: fix single quotes

python habits

meson: fix various issues with dual installation

Flatpak: don't enforce the branch for gitg

It causes issues with Gitlab CI as we can't test the build on other branches anymore.

remove .gitignore
2019-01-16 19:53:56 +01:00
Alberto Fanjul
acb73d986b Show only diffs 2019-01-07 23:48:48 +01:00
Alberto Fanjul
94b76c765e Fix type on create cursor surface 2019-01-05 10:10:57 +00:00
Alberto Fanjul
1dd1ac8701 Style scheme configurable
Add combo in preferences to choose style
Remove dependency from gedit settings
Configure diff source view and files plugin
2019-01-02 22:52:03 +01:00
Alberto Fanjul
41c647fd9c Collapse only existing lanes 2019-01-02 22:48:00 +01:00
Alberto Fanjul
11c42d75f0 Remove old buildsystem 2018-12-19 23:05:36 +01:00
Rico Tzschichholz
358f5ec7e9 libgitg: Fix mismatch of type-parameter ownership 2018-11-04 20:45:34 +00:00
Ting-Wei Lan
1e13a055a5 build: Fix non-literal format string warnings for clang
https://gitlab.gnome.org/GNOME/gitg/issues/160
https://gitlab.gnome.org/GNOME/gitg/issues/161
2018-11-04 20:29:57 +00:00
Alberto Fanjul
f0cd2c8cfa meson: Install vala header into correct location 2018-11-04 03:33:52 +01:00
Piotr Drąg
287e1053e8 Use Unicode typography in user-visible strings
See https://developer.gnome.org/hig/stable/typography.html

Fixes https://gitlab.gnome.org/GNOME/gitg/issues/162
2018-10-29 16:18:58 +01:00
Iñigo Martínez
849f95c336 build: Fix shared library paths in typelib files
The GObject Introspection metadata generation by meson uses a custom
target command[0]. This command also needs to specify the shared
library where the symbols in the typelib file can be found.

However, the values used are wrong because the path to the built
shared libraries are specified instead of the name of the
shared libraries themselves.

This has been fixed by specifying the name of the shared libraries.

Fixes #157

[0] http://mesonbuild.com/Vala.html#gobject-introspection
2018-10-28 00:15:12 +02:00
Alberto Fanjul
046945a021 meson: install generated files 2018-10-28 00:06:24 +02:00
Alberto Fanjul
e017371686 meson: remove custom install dirs 2018-10-25 21:22:24 +02:00
Iñigo Martínez
6784aa9f1b build: Remove autotools
To avoid the burden of maintaining multiple build systems, autotools
support has been removed.
2018-10-24 16:41:54 +02:00
Tom Schoonjans
67f2d202d5 libgitg: fix linking on macOS 2018-10-24 08:28:26 +01:00
Adrien Plazas
6dd8b8e009 diff-view: Slide the options up
This avoids the options to look like they appear from nowhere and
instead make them look like they come from the commit tool bar bellow.
2018-10-21 08:38:12 +00:00
Alberto Fanjul
1c3a2c82e6 Search repositories ignoring case 2018-10-14 19:13:42 +02:00
Alberto Fanjul
7e17015566 Fix regexp to parse commit message 2018-10-14 18:18:01 +02:00
Iñigo Martínez
8e7da995f9 meson: Improve libraries variable naming
Although most of the parameters used for file naming when building
libraries and introspection data can be replaced by variables, the
actual naming can create a lot of confusion.

This naming scheme has been improved by using clearer names and by
also using a prefix in them.
2018-10-10 23:29:26 +02:00
Iñigo Martínez
8b09eb1892 meson: Fix dependencies
Libraries build by gitg expose a number of includes in their public
headers belonging to different libraries. Therefore, these libraries
are indirect dependencies of the library to be built.

With this in mind, these indirect dependencies are also included
when a direct dependency is included, so there is no need to include
them again.

Dependency hierarchy has been fixed and duplicated dependencies
removed.

Created `pkg-config` files requirements have also been fixed.
2018-10-10 23:29:26 +02:00
Iñigo Martínez
5375bc4873 meson: Improved linker flag support checks
Since version 0.46, meson has support for checking support for
linker flags[0].

gitg's linker flag support checking has been improved by using
the provided functions.

[0] http://mesonbuild.com/Release-notes-for-0-46-0.html#new-functions-has_link_argument-and-friends
2018-10-10 23:29:26 +02:00
Iñigo Martínez
fd9f6c4a29 meson: Add trailing commas
Add missing trailing commas that avoids getting noise when another
file/parameter is added and eases reviewing changes[0].

[0] https://gitlab.gnome.org/GNOME/dconf/merge_requests/11#note_291585
2018-10-10 23:29:26 +02:00
Iñigo Martínez
95e96784e5 meson: Remove install_dir for default directories
Some targets that are installed in default directories are using the
`install_dir`, which is not necessary.

The `install_dir` parameter has been removed from those targets that
are installed in their default directories.
2018-10-10 23:29:26 +02:00
Jente Hidskes
268f3209dc Refactor dark theme detection into a function
We need to instance a Gtk.Widget to be able to use `get_style_context`.
Thus, we use the singleton pattern to avoid allocating an object every
time we call `is_theme_dark()`.

Fixes #133.
2018-10-10 20:16:55 +00:00
Alberto Fanjul
04bdad03bf theme: Detect dark theme with its background color 2018-07-20 19:51:17 +02:00
Alberto Fanjul
a8112c1989 theme: Detect dark theme with its background color 2018-07-18 18:03:43 +02:00
Rico Tzschichholz
c2a4e98c3e Drop default value of non-automatic property for newer vala
https://bugzilla.gnome.org/show_bug.cgi?id=795500
2018-04-24 17:24:56 +02:00
Iñigo Martínez
0c4f0dd4ac build: Set prefix-relative install_dir for pkgconfig
While installing seems to have no issues with absolute paths
for install_dir, the pkgconfig integration in meson does
and create wrong library paths in the .pc file.

https://bugzilla.gnome.org/show_bug.cgi?id=788796
2017-11-15 17:44:00 +01:00
Iñigo Martínez
c876e0e255 build: Port to meson build system
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.

https://bugzilla.gnome.org/show_bug.cgi?id=788796
2017-10-16 13:40:57 +02:00
Iñigo Martínez
d5a822ddc5 Rename gsettings-desktop-schemas VAPI file
Vala recommends using the same name used in the pkg-config .pc file
for the VAPI file. This implies that the gsettings-desktop-schemas
VAPI file should be called gsettings-desktop-schemas.vapi instead of
gdesktop-enums-3.0.vapi.

This patch changes the file accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=789045
2017-10-16 12:18:01 +02:00
Rico Tzschichholz
f029e7333e Fix vala warnings 2017-03-01 14:47:45 +01:00
Ignacio Casal Quinteiro
86cc68589e Fix for libgit2-glib api change 2017-02-04 22:40:59 +01:00
Ignacio Casal Quinteiro
30938ff514 Do not duplicate the fds 2017-02-04 22:36:05 +01:00
Jesse van den Kieboom
2971ffd28c Use same callbacks instance during remote connection life cycle 2016-08-29 19:32:33 +02:00
Jesse van den Kieboom
c0c44a9563 Fix side-by-side alignment in the case of a single image 2016-08-29 05:43:43 +02:00
Jesse van den Kieboom
2b8f2e1175 Fix size calculation if there is no old pixbuf 2016-08-29 05:43:43 +02:00
Jesse van den Kieboom
b2ed43d22d Add diff renderer for images 2016-08-27 12:26:43 +02:00
Jesse van den Kieboom
05d78b14ac Use private bookmarks file instead of recent manager
This avoids the tie-in of GtkRecentManager with the global gnome
privacy settings.

https://bugzilla.gnome.org/show_bug.cgi?id=766473
2016-08-25 23:21:26 +02:00
Jesse van den Kieboom
e4be0eaec6 Add context menu for file in diff view
Adds:
  - Open file
  - Open containing folder
  - Copy file path

https://bugzilla.gnome.org/show_bug.cgi?id=761699
2016-08-19 10:55:25 +02:00
Jesse van den Kieboom
73d6b6e61b Show extended git message as part of the scrolled area
https://bugzilla.gnome.org/show_bug.cgi?id=769239
2016-08-19 09:05:37 +02:00
Jesse van den Kieboom
c8a12f6a28 Fix toggle line selection
- Clicking now toggles again (removed alt modifier behavior)
- Shift click will extend selection

https://bugzilla.gnome.org/show_bug.cgi?id=765726
2016-08-18 17:46:01 +02:00
Jesse van den Kieboom
109e47eb8d Avoid use of deprecated pointer API 2016-08-18 13:58:25 +02:00
Jesse van den Kieboom
06c1c4a245 Cancel update diff on dispose 2016-08-18 13:58:07 +02:00
Jesse van den Kieboom
5513ae5b5b Allow null repository during deconstruction 2016-08-18 13:08:18 +02:00
Jesse van den Kieboom
7848a4c1e5 Fix assumptions on existing working directory 2016-08-18 13:02:33 +02:00
Jesse van den Kieboom
3c6fd2de18 Avoid submodule iteration on bare repositories due to libgit2 bug 2016-08-18 11:04:31 +02:00
Jesse van den Kieboom
b05523fc15 Wire up newly cloned repository 2016-08-18 11:00:52 +02:00
Jesse van den Kieboom
f018233a37 Add support for clone url in ssh short form
https://bugzilla.gnome.org/show_bug.cgi?id=767064
2016-08-18 10:40:03 +02:00
Jesse van den Kieboom
f9ecad6db9 Fix diff index against empty repository
https://bugzilla.gnome.org/show_bug.cgi?id=769996
2016-08-17 16:04:59 +02:00
Jesse van den Kieboom
411c5743ce Improve support for binary file detection in diff views
https://bugzilla.gnome.org/show_bug.cgi?id=768650
2016-08-16 18:01:55 +02:00
Jesse van den Kieboom
9af17f32ae Fix getting id of parent of there is no parent
This would happen for the first commit in the repo
2016-08-14 10:30:38 +02:00
Jesse van den Kieboom
f37ff72ea0 Only walk first tree level looking for .doap 2016-08-14 10:26:09 +02:00
Jesse van den Kieboom
2b9fade23b Disconnect/reconnect model on clear
https://bugzilla.gnome.org/show_bug.cgi?id=768651
2016-08-14 10:25:57 +02:00
Jesse van den Kieboom
83fc596a02 Fix incremental loading on large repositories 2016-08-11 18:07:02 +02:00
Ignacio Casal Quinteiro
d43cada63a libgitg: show the complete message, not only the subject
https://bugzilla.gnome.org/show_bug.cgi?id=767891
2016-06-22 15:37:12 +02:00
Jesse van den Kieboom
3e5fc07c97 Reduce hot area for action bar to mitigate horizontal scrolling issue
https://bugzilla.gnome.org/show_bug.cgi?id=764003
2016-06-05 12:23:17 +02:00
Jesse van den Kieboom
1da1acfb1c Fix style of language label in dark theme
https://bugzilla.gnome.org/show_bug.cgi?id=766532
2016-06-05 11:47:10 +02:00
Jesse van den Kieboom
e3dc6142ca Increase row spacing in for project item details 2016-06-05 11:37:41 +02:00
Jesse van den Kieboom
f891fc4e43 Hide description label if there is no description 2016-06-05 11:37:30 +02:00
Ignacio Casal Quinteiro
d55ce1608d Bump libgit2-glib to 0.23.11 and fix api break 2016-03-15 00:07:58 +01:00
Ignacio Casal Quinteiro
10d0b62e10 diff-stat: use set_css_name to get it renderered properly
In new gtk we need to set the css name for custom widgets
2016-02-14 19:03:13 +01:00
Jesse van den Kieboom
6ecb54ca15 Make commit details labels copyable with Ctrl+C 2016-02-14 17:31:12 +01:00
Jesse van den Kieboom
3ca15914e5 Remove carriage returns in diff view 2016-02-14 16:15:57 +01:00
Jesse van den Kieboom
aa41ac052c Allow focus on diff renderer text
Fixes copy using Ctrl+C
2016-02-14 11:58:51 +01:00
Ignacio Casal Quinteiro
9c917dc469 listboxrow: use baseline for the languages and the branch name 2016-02-13 15:39:10 +01:00
Ignacio Casal Quinteiro
076e5df5b6 diff-view: get the selection notification from the renderer 2016-02-04 18:31:20 +01:00
Ignacio Casal Quinteiro
0625efe752 Rework dash view
This makes the dash view a bit more similar to gnome builder.
It is still not complete on features but it gives already
a good way to continue improving it.
2016-01-25 08:40:53 +01:00
Ignacio Casal Quinteiro
8809c20f90 renderer-text: add missing transform_to_window calls 2016-01-22 14:33:19 +01:00
Ignacio Casal Quinteiro
3fd4e11515 Fix assertion when loading a repo from the dash
The repository might be null
2016-01-11 20:58:42 +01:00
Jesse van den Kieboom
68a9c4bd3e Add missing cairo includes
Bug https://bugzilla.gnome.org/show_bug.cgi?id=760173.
2016-01-05 19:54:47 +01:00
Jesse van den Kieboom
f291802654 Sepearate out diff renderer types 2016-01-04 15:04:31 +01:00
Jesse van den Kieboom
e013c2a9a7 Show untracked content 2016-01-03 22:22:20 +01:00
Jesse van den Kieboom
a8eda0f312 Add diff highlight preference 2016-01-03 20:46:23 +01:00
Jesse van den Kieboom
0573e0756b Merge branch 'highlighting' 2015-12-31 13:04:06 +01:00
Jesse van den Kieboom
b5efd19070 Preserve expanded state when reloading diff 2015-12-31 12:32:42 +01:00
Jesse van den Kieboom
f490f980a4 Delay populating recent info until dash is shown 2015-12-31 01:32:13 +01:00
Jesse van den Kieboom
67e5877849 Avoid disconnecting signal during handlers destroy 2015-12-31 01:30:51 +01:00
Jesse van den Kieboom
c8d8a0ef8c Add revealer with diff options 2015-12-30 23:29:19 +01:00
Jesse van den Kieboom
e17a3c58f4 Only add recent info when mapped 2015-12-30 18:26:34 +01:00
Jesse van den Kieboom
d96671ddb5 Disconnect mapped signal in handler 2015-12-30 18:26:23 +01:00
Jesse van den Kieboom
041e0786ae Fix use of NSURLConnection 2015-12-30 13:55:06 +01:00
Jesse van den Kieboom
524f6d27db Use NSURLConnection instead of NSURLSessionDataTask 2015-12-30 13:06:48 +01:00
Jesse van den Kieboom
71a22144b2 Fix os x platform paths 2015-12-30 11:15:31 +01:00
Jesse van den Kieboom
1ac57cec3e Use https to get avatars 2015-12-30 11:15:30 +01:00