Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gitg
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
173
Issues
173
List
Boards
Labels
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gitg
Commits
c65df170
Commit
c65df170
authored
Jul 31, 2015
by
Jesse van den Kieboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix clone url validity check
parent
a3cfb3d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
gitg/gitg-clone-dialog.vala
gitg/gitg-clone-dialog.vala
+5
-1
No files found.
gitg/gitg-clone-dialog.vala
View file @
c65df170
...
...
@@ -81,7 +81,9 @@ public class CloneDialog : Gtk.Dialog
string
?
tooltip_text
=
null
;
string
?
icon_name
=
null
;
if
(
d_entry_url
.
text
!=
""
)
var
is_valid
=
(
d_entry_url
.
text
!=
""
);
if
(!
is_valid
)
{
icon_name
=
"dialog-warning-symbolic"
;
tooltip_text
=
_
(
"The URL introduced is not supported"
);
...
...
@@ -89,6 +91,8 @@ 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
,
is_valid
);
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment