[gitg] Fix api breaks from libgit2-glib
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Fix api breaks from libgit2-glib
- Date: Sun, 18 Jan 2015 18:51:35 +0000 (UTC)
commit a1f43c1c985e48b8c8ca941e3d1c8d1dcc19122a
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Jan 18 19:51:15 2015 +0100
Fix api breaks from libgit2-glib
gitg/gitg-author-details-dialog.vala | 1 -
gitg/gitg-clone-dialog.vala | 5 +----
gitg/gitg-remote-manager.vala | 2 +-
libgitg/gitg-remote.vala | 2 +-
4 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/gitg/gitg-author-details-dialog.vala b/gitg/gitg-author-details-dialog.vala
index 64cdb65..59f66dd 100644
--- a/gitg/gitg-author-details-dialog.vala
+++ b/gitg/gitg-author-details-dialog.vala
@@ -81,7 +81,6 @@ namespace Gitg
try
{
- d_config.refresh();
author_name = d_config.get_string("user.name");
}
catch {}
diff --git a/gitg/gitg-clone-dialog.vala b/gitg/gitg-clone-dialog.vala
index 94eb610..60390f9 100644
--- a/gitg/gitg-clone-dialog.vala
+++ b/gitg/gitg-clone-dialog.vala
@@ -80,9 +80,8 @@ public class CloneDialog : Gtk.Dialog
d_entry_url.changed.connect((e) => {
string ?tooltip_text = null;
string ?icon_name = null;
- bool url_supported = Ggit.Remote.is_supported_url(d_entry_url.get_text());
- if (!url_supported && (d_entry_url.text != ""))
+ if (d_entry_url.text != "")
{
icon_name = "dialog-warning-symbolic";
tooltip_text = _("The URL introduced is not supported");
@@ -90,8 +89,6 @@ public class CloneDialog : Gtk.Dialog
d_entry_url.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, icon_name);
d_entry_url.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, tooltip_text);
-
- set_response_sensitive(Gtk.ResponseType.OK, url_supported);
});
}
}
diff --git a/gitg/gitg-remote-manager.vala b/gitg/gitg-remote-manager.vala
index faf62ab..d4b0e93 100644
--- a/gitg/gitg-remote-manager.vala
+++ b/gitg/gitg-remote-manager.vala
@@ -115,7 +115,7 @@ class RemoteManager : Object, GitgExt.RemoteLookup
try
{
- remote = d_window.repository.get_remote(name) as Gitg.Remote;
+ remote = d_window.repository.lookup_remote(name) as Gitg.Remote;
} catch { return null; }
var url = remote.get_url();
diff --git a/libgitg/gitg-remote.vala b/libgitg/gitg-remote.vala
index 41ed34f..d9b59d5 100644
--- a/libgitg/gitg-remote.vala
+++ b/libgitg/gitg-remote.vala
@@ -177,7 +177,7 @@ public class Remote : Ggit.Remote
try
{
yield Async.thread(() => {
- base.download();
+ base.download(null);
if (signature != null)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]