Back to index

easystroke  0.5.5.1
Classes | Functions | Variables
win.cc File Reference
#include "actions.h"
#include "prefs.h"
#include "win.h"
#include "main.h"
#include <glibmm/i18n.h>

Go to the source code of this file.

Classes

class  MenuCheck

Functions

void quit ()
void icon_warning ()
static gboolean icon_clicked (GtkStatusIcon *status_icon, GdkEventButton *event, gpointer)
void error_dialog (const Glib::ustring &text)
Glib::ustring app_name_hr (Glib::ustring src)

Variables

Glib::RefPtr< Gtk::Builder > widgets
Source< bool > disabled (false)
const char * version_string

Function Documentation

Glib::ustring app_name_hr ( Glib::ustring  src)

Definition at line 271 of file win.cc.

                                         {
       return src == "" ? _("(window manager frame)") : src;
}

Here is the caller graph for this function:

void error_dialog ( const Glib::ustring &  text)

Definition at line 265 of file win.cc.

                                           {
       Gtk::MessageDialog dialog(win->get_window(), text, false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
       dialog.show();
       dialog.run();
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean icon_clicked ( GtkStatusIcon *  status_icon,
GdkEventButton *  event,
gpointer   
) [static]

Definition at line 196 of file win.cc.

                                                                                          {
       if (event->button == 2)
              disabled.set(!disabled.get());
       return TRUE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icon_warning ( )

Definition at line 1063 of file main.cc.

                    {
       for (ActionDB::const_iterator i = actions.begin(); i != actions.end(); i++) {
              Misc *m = dynamic_cast<Misc *>(i->second.action.get());
              if (m && m->type == Misc::SHOWHIDE)
                     return;
       }
       if (!win)
              return;

       Gtk::MessageDialog *md;
       widgets->get_widget("dialog_icon", md);
       md->set_message(_("Tray icon disabled"));
       md->set_secondary_text(_("To bring the configuration dialog up again, you should define an action of type Misc...Show/Hide."));
       md->run();
       md->hide();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void quit ( )

Definition at line 1080 of file main.cc.

            {
       static bool dead = false;
       if (dead)
              bail_out();
       dead = true;
       queue(sigc::ptr_fun(&Gtk::Main::quit));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Source<bool> disabled(false)
const char* version_string
Glib::RefPtr<Gtk::Builder> widgets

Definition at line 22 of file win.cc.