mirror of https://github.com/deavminet/gustav.git
Allow reordering on connection tabs
This commit is contained in:
parent
7ae11e120e
commit
29556a6d8c
|
@ -87,6 +87,7 @@ public final class Connection : Thread
|
||||||
te();
|
te();
|
||||||
box = getChatPane();
|
box = getChatPane();
|
||||||
gui.notebook.add(box);
|
gui.notebook.add(box);
|
||||||
|
gui.notebook.setTabReorderable(box, true);
|
||||||
//gui.notebook setChildPacking(box, true, true, 0, GtkPackType.START);
|
//gui.notebook setChildPacking(box, true, true, 0, GtkPackType.START);
|
||||||
// gui.mainWindow.
|
// gui.mainWindow.
|
||||||
gui.notebook.setTabLabelText(box, auth[0]~"@"~address.toString());
|
gui.notebook.setTabLabelText(box, auth[0]~"@"~address.toString());
|
||||||
|
@ -119,6 +120,7 @@ public final class Connection : Thread
|
||||||
// textArea.add(new Label(to!(string)(notificationData)));
|
// textArea.add(new Label(to!(string)(notificationData)));
|
||||||
// textArea.showAll();
|
// textArea.showAll();
|
||||||
|
|
||||||
|
|
||||||
process(notificationData);
|
process(notificationData);
|
||||||
//gui.mainWindow.showAll();
|
//gui.mainWindow.showAll();
|
||||||
|
|
||||||
|
|
41
source/gui.d
41
source/gui.d
|
@ -104,8 +104,12 @@ public class GUI : Thread
|
||||||
notebook = new Notebook();
|
notebook = new Notebook();
|
||||||
notebook.setScrollable(true);
|
notebook.setScrollable(true);
|
||||||
box.add(notebook);
|
box.add(notebook);
|
||||||
|
|
||||||
statusBar = new Statusbar();
|
statusBar = new Statusbar();
|
||||||
statusBar.add(new Label("Gustav: Bruh"));
|
statusBar.add(new Label("Gustav: Bruh"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
box.setChildPacking(notebook, true, true, 0, GtkPackType.START);
|
box.setChildPacking(notebook, true, true, 0, GtkPackType.START);
|
||||||
box.packEnd(statusBar, 0, 0, 0);
|
box.packEnd(statusBar, 0, 0, 0);
|
||||||
//notebook.add(createServerTab());
|
//notebook.add(createServerTab());
|
||||||
|
@ -158,6 +162,43 @@ public class GUI : Thread
|
||||||
setAway.addOnClicked(&setStatus);
|
setAway.addOnClicked(&setStatus);
|
||||||
setBusy.addOnClicked(&setStatus);
|
setBusy.addOnClicked(&setStatus);
|
||||||
|
|
||||||
|
import gtk.SeparatorToolItem;
|
||||||
|
toolbar.add(new SeparatorToolItem());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ToolButton channelListButton = new ToolButton("folder");
|
||||||
|
channelListButton.setTooltipText("List channels");
|
||||||
|
toolbar.add(channelListButton);
|
||||||
|
|
||||||
|
// import gtk.ComboBox;
|
||||||
|
|
||||||
|
// ComboBox d = new ComboBox();
|
||||||
|
// import gtk.Button;
|
||||||
|
// import gtk.Entry;
|
||||||
|
|
||||||
|
|
||||||
|
// import gtk.Switch;
|
||||||
|
// import gtk.ToolItem;
|
||||||
|
// ToolItem g = new ToolItem();
|
||||||
|
// g.add(new Switch());
|
||||||
|
// toolbar.add(g);
|
||||||
|
|
||||||
|
// d.add(new Entry(new Label("1")));
|
||||||
|
// d.add(new Entry(new Label("2")));
|
||||||
|
// d.add(new Entry(new Label("3")));
|
||||||
|
|
||||||
|
// Entry jj;
|
||||||
|
// d.add(new Entry("available"));
|
||||||
|
// d.add(new Entry("away"));
|
||||||
|
// d.add(new Entry("busy"));
|
||||||
|
// import gtk.
|
||||||
|
|
||||||
|
|
||||||
|
// import gtk.ToolItem;
|
||||||
|
// ToolItem h =new ToolItem();
|
||||||
|
// h.add(d);
|
||||||
|
// toolbar.add(h);
|
||||||
|
|
||||||
|
|
||||||
//toolbar.add(new ToolButton("user-available,""Available"));
|
//toolbar.add(new ToolButton("user-available,""Available"));
|
||||||
|
|
Loading…
Reference in New Issue