Skip to content

Commit

Permalink
Merge pull request #270 from torikulhabib/master
Browse files Browse the repository at this point in the history
Remove withspace
  • Loading branch information
torikulhabib authored Jun 22, 2024
2 parents fd6c0be + 64e890a commit 7eec8f7
Show file tree
Hide file tree
Showing 39 changed files with 75 additions and 104 deletions.
29 changes: 12 additions & 17 deletions src/AddUrl.vala
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ namespace Gabut {
}
}

public string linked {
get {
return link_entry.text;
}
}

public AddUrl (Gtk.Application application) {
Object (application: application,
dialogtype: DialogType.ADDURL,
Expand Down Expand Up @@ -635,18 +641,11 @@ namespace Gabut {
box_action.set_end_widget (close_button);
break;
}

var maingrid = new Gtk.Grid () {
orientation = Gtk.Orientation.VERTICAL,
halign = Gtk.Align.CENTER,
hexpand = true,
margin_start = 10,
margin_end = 10
};
maingrid.attach (stack, 0, 0);
maingrid.attach (box_action, 0, 1);

child = maingrid;
var boxarea = get_content_area ();
boxarea.margin_start = 10;
boxarea.margin_end = 10;
boxarea.append (stack);
boxarea.append (box_action);

view_mode.notify["selected"].connect (() => {
switch (view_mode.selected) {
Expand Down Expand Up @@ -852,10 +851,6 @@ namespace Gabut {
status_image.gicon = new ThemedIcon (icon);
}

public string get_link () {
return link_entry.text;
}

public void server_link (MatchInfo match_info) {
link_entry.text = match_info.fetch (PostServer.URL);
name_entry.text = match_info.fetch (PostServer.FILENAME);
Expand Down Expand Up @@ -966,4 +961,4 @@ namespace Gabut {
}
}
}
}
}
21 changes: 5 additions & 16 deletions src/AlertView.vala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Gabut {
public class AlertView : Gtk.Box {
public class AlertView : Gtk.Grid {
public string title {
get {
return title_label.label;
Expand Down Expand Up @@ -37,7 +37,7 @@ namespace Gabut {
private Gtk.Image image;

public AlertView (string title, string description, string icon_name) {
Object (title: title, description: description, icon_name: icon_name);
Object (title: title, description: description, icon_name: icon_name, column_spacing: 12, row_spacing: 6, halign: Gtk.Align.CENTER, valign: Gtk.Align.CENTER,vexpand: true);
}

construct {
Expand Down Expand Up @@ -66,20 +66,9 @@ namespace Gabut {
icon_size = Gtk.IconSize.LARGE,
pixel_size = 64
};

var layout = new Gtk.Grid () {
column_spacing = 12,
row_spacing = 6,
halign = Gtk.Align.CENTER,
valign = Gtk.Align.CENTER,
vexpand = true
};

layout.attach (image, 1, 1, 1, 2);
layout.attach (title_label, 2, 1, 1, 1);
layout.attach (description_label, 2, 2, 1, 1);

append (layout);
attach (image, 1, 1, 1, 2);
attach (title_label, 2, 1, 1, 1);
attach (description_label, 2, 2, 1, 1);
}
}
}
4 changes: 2 additions & 2 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ namespace Gabut {
private bool url_active (string url) {
bool active = false;
addurls.foreach ((urls)=> {
if (urls.get_link () == url) {
if (urls.linked == url) {
active = true;
}
});
Expand Down Expand Up @@ -432,4 +432,4 @@ namespace Gabut {
return app.run (args);
}
}
}
}
2 changes: 1 addition & 1 deletion src/BTEncrypt.vala
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ namespace Gabut {
show ();
}
}
}
}
2 changes: 1 addition & 1 deletion src/CanonicalDbusmenu.vala
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ namespace Gabut {
id_errors = {};
}
}
}
}
2 changes: 1 addition & 1 deletion src/ChecksumType.vala
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ namespace Gabut {
show ();
}
}
}
}
2 changes: 1 addition & 1 deletion src/DbusIndicator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ namespace Gabut {
public void secondary_activate (int x, int y) throws GLib.Error {}
public void x_ayatana_secondary_activate (uint timestamp) throws GLib.Error {}
}
}
}
2 changes: 1 addition & 1 deletion src/DbusmenuItem.vala
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ namespace Gabut {
});
}
}
}
}
2 changes: 1 addition & 1 deletion src/DownloadRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -716,4 +716,4 @@ namespace Gabut {
return urisel_popover;
}
}
}
}
19 changes: 8 additions & 11 deletions src/Downloader.vala
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ namespace Gabut {

var boxstatus = new Gtk.Grid () {
halign = Gtk.Align.CENTER,
valign = Gtk.Align.CENTER,
hexpand = true,
orientation = Gtk.Orientation.VERTICAL
};
Expand Down Expand Up @@ -521,15 +522,12 @@ namespace Gabut {
transition_type = Gtk.RevealerTransitionType.SWING_DOWN,
child = connpeers
};

var maingrid = new Gtk.Box (Gtk.Orientation.VERTICAL, 0) {
hexpand = true,
margin_start = 10,
margin_end = 10
};
maingrid.append (boxstatus);
maingrid.append (centerbox);
maingrid.append (revcon);
var boxarea = get_content_area ();
boxarea.margin_start = 10;
boxarea.margin_end = 10;
boxarea.append (boxstatus);
boxarea.append (centerbox);
boxarea.append (revcon);

notify["switch-rev"].connect (()=> {
if (switch_rev) {
Expand Down Expand Up @@ -559,7 +557,6 @@ namespace Gabut {
break;
}
});
child = maingrid;
}

public override void show () {
Expand Down Expand Up @@ -803,4 +800,4 @@ namespace Gabut {
return exist;
}
}
}
}
2 changes: 1 addition & 1 deletion src/FileAllocation.vala
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ namespace Gabut {
show ();
}
}
}
}
2 changes: 1 addition & 1 deletion src/GabutServer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -632,4 +632,4 @@ namespace Gabut {
}
}
}
}
}
2 changes: 1 addition & 1 deletion src/GabutSucces.vala
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ namespace Gabut {
return builder.str;
}
}
}
}
2 changes: 1 addition & 1 deletion src/GabutWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1312,4 +1312,4 @@ namespace Gabut {
listrow.sort (sort_dm);
}
}
}
}
2 changes: 1 addition & 1 deletion src/GdmMenu.vala
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ namespace Gabut {
show ();
}
}
}
}
2 changes: 1 addition & 1 deletion src/GdmOutstream.vala
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ namespace Gabut {
return stream.close ();
}
}
}
}
2 changes: 1 addition & 1 deletion src/GdmPaint.vala
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ namespace Gabut {
snapshot (snaps, width, height);
}
}
}
}
2 changes: 1 addition & 1 deletion src/LoginUser.vala
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ namespace Gabut {
show ();
}
}
}
}
2 changes: 1 addition & 1 deletion src/MediaEntry.vala
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ namespace Gabut {
text = value.get_string ();
}
}
}
}
2 changes: 1 addition & 1 deletion src/ModeButton.vala
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ namespace Gabut {
}
}
}
}
}
2 changes: 1 addition & 1 deletion src/PeersRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ namespace Gabut {
child = grid;
}
}
}
}
2 changes: 1 addition & 1 deletion src/PieceSelector.vala
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ namespace Gabut {
show ();
}
}
}
}
21 changes: 8 additions & 13 deletions src/Preferences.vala
Original file line number Diff line number Diff line change
Expand Up @@ -885,22 +885,17 @@ namespace Gabut {
margin_bottom = 10,
column_spacing = 10,
column_homogeneous = true,
halign = Gtk.Align.CENTER,
orientation = Gtk.Orientation.HORIZONTAL
halign = Gtk.Align.CENTER
};
box_action.attach (save_button, 0, 0);
box_action.attach (close_button, 1, 0);

var maingrid = new Gtk.Grid () {
orientation = Gtk.Orientation.VERTICAL,
halign = Gtk.Align.CENTER,
margin_start = 10,
margin_end = 10
};
maingrid.attach (stack, 0, 0);
maingrid.attach (box_action, 0, 1);

child = maingrid;
var boxarea = get_content_area ();
boxarea.margin_start = 10;
boxarea.margin_end = 10;
boxarea.halign = Gtk.Align.CENTER;
boxarea.append (stack);
boxarea.append (box_action);
view_mode.notify["selected"].connect (() => {
switch (view_mode.selected) {
case 1:
Expand All @@ -922,4 +917,4 @@ namespace Gabut {
});
}
}
}
}
2 changes: 1 addition & 1 deletion src/ProgressPaint.vala
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ namespace Gabut {
cr.stroke ();
}
}
}
}
2 changes: 1 addition & 1 deletion src/ProxyMethod.vala
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ namespace Gabut {
show ();
}
}
}
}
2 changes: 1 addition & 1 deletion src/ProxyType.vala
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ namespace Gabut {
show ();
}
}
}
}
2 changes: 1 addition & 1 deletion src/QrCode.vala
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ namespace Gabut {
imageqr.paintable = snapshot.free_to_paintable (grapinsize);
}
}
}
}
2 changes: 1 addition & 1 deletion src/ServerComplete.vala
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ namespace Gabut {
</html>
";
}
}
}
2 changes: 1 addition & 1 deletion src/ServerCss.vala
Original file line number Diff line number Diff line change
Expand Up @@ -453,4 +453,4 @@ namespace Gabut {
}
}";
}
}
}
2 changes: 1 addition & 1 deletion src/ServerDM.vala
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ namespace Gabut {
</html>
";
}
}
}
2 changes: 1 addition & 1 deletion src/ServerHome.vala
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ namespace Gabut {
</html>
";
}
}
}
2 changes: 1 addition & 1 deletion src/ServerNotFound.vala
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ namespace Gabut {
</html>
";
}
}
}
2 changes: 1 addition & 1 deletion src/ServerRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ namespace Gabut {
child = grid;
}
}
}
}
2 changes: 1 addition & 1 deletion src/ServerShare.vala
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ namespace Gabut {
</html>
";
}
}
}
Loading

0 comments on commit 7eec8f7

Please sign in to comment.