void UpdateStatusBar() { string msg = null; Connection conn = GetActiveConnection(); if (conn == null) { return; } try { if (conn.AuthDN == null) { msg = String.Format("Bind DN: anonymous"); } else { msg = String.Format("Bind DN: {0}", conn.AuthDN); } appBar.Pop(); appBar.Push(msg); sslImage.Pixbuf = Util.GetSSLIcon(conn.UseSSL); } catch (Exception e) { Log.Debug(e); } }
public OpenPdfUi(string[] args) { Program program = new Program(progname, progversion, Modules.UI, args); Glade.XML gxml = new Glade.XML(null, "openpdfui.glade", "pdfview", null); gxml.Autoconnect(this); // TODO: I need to work out how to set the minimum width of this splitter TreeViewColumn DemoCol = new TreeViewColumn(); CellRenderer DemoRenderer = new CellRendererText(); DemoCol.Title = "Demo"; DemoCol.PackStart(DemoRenderer, true); DemoCol.AddAttribute(DemoRenderer, "text", 0); pages.AppendColumn(DemoCol); pages.WidthRequest = 40; appbar1.Push("Ready"); program.Run(); }
public void async_update_status() { string s; if (Settings.TransmitAgent == "efax") { s = Fax.async_get_server_status(); if (s != null) { TextMark tm = StatusTextBuffer.GetMark("insert"); StatusTextBuffer.InsertAtCursor(String.Concat(s, "\n")); StatusText.ScrollMarkOnscreen(tm); } } if (Settings.TransmitAgent == "hylafax") { // Progressbar pulser - add this when we have async comms GLib.Timeout.Add((uint)(100), new TimeoutHandler(queue_progress)); // update status bar Appbar.ClearStack(); Appbar.Push(Catalog.GetString("Refreshing server status...")); Appbar.Refresh(); //GLib.MainContext.Iteration (); while (Gtk.Application.EventsPending()) { Gtk.Application.RunIteration(); } s = Fax.async_get_server_status(); } }