From 72f0c755927a7795a487fc9481435632746c8a4f Mon Sep 17 00:00:00 2001 From: fgerlits Date: Fri, 3 Aug 2007 13:08:04 +0000 Subject: [PATCH] found one more window to gladeify; I think this was really the last one --- .../src/modules/widgets/etc/Makefile.in | 1 - .../LiveSupport/Widgets/WidgetFactory.h | 14 -- .../widgets/src/DateTimeChooserWindow.cxx | 174 ------------------ .../src/modules/widgets/src/WidgetFactory.cxx | 13 +- .../src/products/gLiveSupport/etc/Makefile.in | 1 + .../products/gLiveSupport/src/BackupView.cxx | 3 +- .../products/gLiveSupport/src/BackupView.h | 6 +- .../src/DateTimeChooserWindow.cxx | 128 +++++++++++++ .../gLiveSupport/src}/DateTimeChooserWindow.h | 64 +++---- .../products/gLiveSupport/src/GLiveSupport.h | 11 ++ .../src/SchedulePlaylistWindow.cxx | 9 +- .../var/glade/DateTimeChooserWindow.glade | 150 +++++++++++++++ 12 files changed, 330 insertions(+), 244 deletions(-) delete mode 100644 campcaster/src/modules/widgets/src/DateTimeChooserWindow.cxx create mode 100644 campcaster/src/products/gLiveSupport/src/DateTimeChooserWindow.cxx rename campcaster/src/{modules/widgets/include/LiveSupport/Widgets => products/gLiveSupport/src}/DateTimeChooserWindow.h (74%) create mode 100644 campcaster/src/products/gLiveSupport/var/glade/DateTimeChooserWindow.glade diff --git a/campcaster/src/modules/widgets/etc/Makefile.in b/campcaster/src/modules/widgets/etc/Makefile.in index 44147adcc..e736af92f 100644 --- a/campcaster/src/modules/widgets/etc/Makefile.in +++ b/campcaster/src/modules/widgets/etc/Makefile.in @@ -154,7 +154,6 @@ WIDGETS_LIB_OBJS = ${TMP_DIR}/ImageButton.o \ ${TMP_DIR}/DialogWindow.o \ ${TMP_DIR}/ScrolledWindow.o \ ${TMP_DIR}/ScrolledNotebook.o \ - ${TMP_DIR}/DateTimeChooserWindow.o \ ${TMP_DIR}/RadioButtons.o \ ${TMP_DIR}/MasterPanelBin.o \ diff --git a/campcaster/src/modules/widgets/include/LiveSupport/Widgets/WidgetFactory.h b/campcaster/src/modules/widgets/include/LiveSupport/Widgets/WidgetFactory.h index 2e72d4c5e..527923967 100644 --- a/campcaster/src/modules/widgets/include/LiveSupport/Widgets/WidgetFactory.h +++ b/campcaster/src/modules/widgets/include/LiveSupport/Widgets/WidgetFactory.h @@ -58,7 +58,6 @@ #include "LiveSupport/Widgets/EntryBin.h" #include "LiveSupport/Widgets/DialogWindow.h" #include "LiveSupport/Widgets/ZebraTreeView.h" -#include "LiveSupport/Widgets/DateTimeChooserWindow.h" namespace LiveSupport { @@ -418,19 +417,6 @@ class WidgetFactory : Ptr::Ref bundle, int buttons = DialogWindow::okButton) throw (); - - /** - * Create a DateTimeChooserWindow. - * It lets the user select a date/time. - * It is the reponsibility of the caller to dispose of the created - * object properly. - * - * @param bundle localization for the button(s). - * @return the DateTimeChooserWindow object. - */ - DateTimeChooserWindow * - createDateTimeChooserWindow(Ptr::Ref bundle) - throw (); }; diff --git a/campcaster/src/modules/widgets/src/DateTimeChooserWindow.cxx b/campcaster/src/modules/widgets/src/DateTimeChooserWindow.cxx deleted file mode 100644 index 6a6f3b48c..000000000 --- a/campcaster/src/modules/widgets/src/DateTimeChooserWindow.cxx +++ /dev/null @@ -1,174 +0,0 @@ -/*------------------------------------------------------------------------------ - - Copyright (c) 2004 Media Development Loan Fund - - This file is part of the Campcaster project. - http://campcaster.campware.org/ - To report bugs, send an e-mail to bugs@campware.org - - Campcaster is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - Campcaster is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Campcaster; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - - Author : $Author: fgerlits $ - Version : $Revision$ - Location : $URL: svn+ssh://fgerlits@code.campware.org/home/svn/repo/livesupport/trunk/livesupport/src/modules/widgets/src/DateTimeChooserWindow.cxx $ - -------------------------------------------------------------------------------*/ - -/* ============================================================ include files */ - -#ifdef HAVE_CONFIG_H -#include "configure.h" -#endif - -#include "LiveSupport/Widgets/WidgetFactory.h" -#include "LiveSupport/Widgets/Colors.h" -#include "LiveSupport/Widgets/Button.h" - -#include "LiveSupport/Widgets/DateTimeChooserWindow.h" - - -using namespace LiveSupport::Widgets; - -/* =================================================== local data structures */ - - -/* ================================================ local constants & macros */ - - -/* =============================================== local function prototypes */ - - -/* ============================================================= module code */ - -/*------------------------------------------------------------------------------ - * Constructor. - *----------------------------------------------------------------------------*/ -DateTimeChooserWindow :: DateTimeChooserWindow(Ptr::Ref bundle) - throw () - : WhiteWindow(Colors::White, - WidgetFactory::getInstance()->getWhiteWindowCorners(), - WhiteWindow::hasNoTitle || WhiteWindow::isModal), - LocalizedObject(bundle) -{ - Ptr::Ref wf = WidgetFactory::getInstance(); - - Gtk::Label * hourLabel; - Gtk::Label * minuteLabel; - Button * cancelButton; - Button * okButton; - - try { - set_title(*getResourceUstring("windowTitle")); - hourLabel = Gtk::manage(new Gtk::Label( - *getResourceUstring("hourLabel"))); - minuteLabel = Gtk::manage(new Gtk::Label( - *getResourceUstring("minuteLabel"))); - cancelButton = Gtk::manage(wf->createButton( - *getResourceUstring("cancelButtonLabel"))); - okButton = Gtk::manage(wf->createButton( - *getResourceUstring("okButtonLabel"))); - } catch (std::invalid_argument &e) { - std::cerr << e.what() << std::endl; - std::exit(1); - } - - calendar = Gtk::manage(new Gtk::Calendar()); - hourEntry = Gtk::manage(wf->createEntryBin()); - minuteEntry = Gtk::manage(wf->createEntryBin()); - - cancelButton->signal_clicked().connect(sigc::mem_fun(*this, - &DateTimeChooserWindow::onCancelButtonClicked)); - okButton->signal_clicked().connect(sigc::mem_fun(*this, - &DateTimeChooserWindow::onOkButtonClicked)); - - Gtk::ButtonBox * buttonBox = Gtk::manage(new Gtk::HButtonBox( - Gtk::BUTTONBOX_END, 5)); - buttonBox->pack_start(*cancelButton); - buttonBox->pack_start(*okButton); - - Gtk::Box * entryBox = Gtk::manage(new Gtk::HBox()); - entryBox->pack_start(*hourLabel, Gtk::PACK_SHRINK, 5); - entryBox->pack_start(*hourEntry, Gtk::PACK_EXPAND_WIDGET, 5); - entryBox->pack_start(*minuteLabel, Gtk::PACK_SHRINK, 5); - entryBox->pack_start(*minuteEntry, Gtk::PACK_EXPAND_WIDGET, 5); - - Gtk::Box * layout = Gtk::manage(new Gtk::VBox()); - layout->pack_start(*calendar, Gtk::PACK_EXPAND_WIDGET, 5); - layout->pack_start(*entryBox, Gtk::PACK_SHRINK, 5); - layout->pack_start(*buttonBox, Gtk::PACK_SHRINK, 5); - - set_default_size(200, 300); - - add(*layout); -} - - -/*------------------------------------------------------------------------------ - * Event handler for the Cancel button clicked - *----------------------------------------------------------------------------*/ -void -DateTimeChooserWindow :: onCancelButtonClicked(void) throw () -{ - chosenDateTime.reset(); - hide(); -} - - -/*------------------------------------------------------------------------------ - * Event handler for the OK button clicked. - *----------------------------------------------------------------------------*/ -void -DateTimeChooserWindow :: onOkButtonClicked(void) throw () -{ - std::stringstream dateTime; - - guint year; - guint month; - guint day; - calendar->get_date(year, month, day); - dateTime << std::setfill('0') << std::setw(4) - << year - << std::setfill('0') << std::setw(2) - << month + 1 - << std::setfill('0') << std::setw(2) - << day; - - Glib::ustring hour = hourEntry ->get_text().substr(0,2); - Glib::ustring minute = minuteEntry->get_text().substr(0,2); - dateTime << "T" - << std::setfill('0') << std::setw(2) - << hour - << std::setfill('0') << std::setw(2) - << minute - << "00"; - - chosenDateTime.reset(new ptime(from_iso_string(dateTime.str()))); - - hide(); -} - - -/*------------------------------------------------------------------------------ - * Show the window and return the button clicked. - *----------------------------------------------------------------------------*/ -Ptr::Ref -DateTimeChooserWindow :: run(void) throw () -{ - show_all(); - Gtk::Main::run(*this); - return chosenDateTime; -} - diff --git a/campcaster/src/modules/widgets/src/WidgetFactory.cxx b/campcaster/src/modules/widgets/src/WidgetFactory.cxx index 72a770df5..0f4aab435 100644 --- a/campcaster/src/modules/widgets/src/WidgetFactory.cxx +++ b/campcaster/src/modules/widgets/src/WidgetFactory.cxx @@ -35,6 +35,8 @@ #include #include +#include +#include #include "LiveSupport/Widgets/Colors.h" @@ -697,17 +699,6 @@ WidgetFactory :: createDialogWindow(Ptr::Ref message, } -/*------------------------------------------------------------------------------ - * Create a date/time chooser window. - *----------------------------------------------------------------------------*/ -DateTimeChooserWindow * -WidgetFactory :: createDateTimeChooserWindow(Ptr::Ref bundle) - throw () -{ - return new DateTimeChooserWindow(bundle); -} - - /*------------------------------------------------------------------------------ * Convert an integer to a string. *----------------------------------------------------------------------------*/ diff --git a/campcaster/src/products/gLiveSupport/etc/Makefile.in b/campcaster/src/products/gLiveSupport/etc/Makefile.in index 0f4558134..54b451d6e 100644 --- a/campcaster/src/products/gLiveSupport/etc/Makefile.in +++ b/campcaster/src/products/gLiveSupport/etc/Makefile.in @@ -276,6 +276,7 @@ G_LIVESUPPORT_OBJS = ${TMP_DIR}/GLiveSupport.o \ ${TMP_DIR}/KeyboardShortcutContainer.o \ ${TMP_DIR}/KeyboardShortcutList.o \ ${TMP_DIR}/OptionsWindow.o \ + ${TMP_DIR}/DateTimeChooserWindow.o \ ${TMP_DIR}/BackupList.o \ ${TMP_DIR}/BackupView.o \ ${TMP_DIR}/ExportPlaylistWindow.o \ diff --git a/campcaster/src/products/gLiveSupport/src/BackupView.cxx b/campcaster/src/products/gLiveSupport/src/BackupView.cxx index 012c8c762..8ac12892a 100644 --- a/campcaster/src/products/gLiveSupport/src/BackupView.cxx +++ b/campcaster/src/products/gLiveSupport/src/BackupView.cxx @@ -101,8 +101,7 @@ BackupView :: BackupView (Ptr::Ref gLiveSupport, constructCriteriaView(); constructBackupListView(); - dateTimeChooserWindow.reset(new DateTimeChooserWindow( - gLiveSupport->getBundle("dateTimeChooserWindow") )); + dateTimeChooserWindow.reset(new DateTimeChooserWindow(gLiveSupport)); } diff --git a/campcaster/src/products/gLiveSupport/src/BackupView.h b/campcaster/src/products/gLiveSupport/src/BackupView.h index cc14f5dfb..9172d83a5 100644 --- a/campcaster/src/products/gLiveSupport/src/BackupView.h +++ b/campcaster/src/products/gLiveSupport/src/BackupView.h @@ -47,7 +47,7 @@ #include "LiveSupport/Core/Ptr.h" #include "LiveSupport/Core/LocalizedObject.h" #include "LiveSupport/Core/TimeConversion.h" -#include "LiveSupport/Widgets/DateTimeChooserWindow.h" +#include "DateTimeChooserWindow.h" #include "AdvancedSearchEntry.h" #include "BackupList.h" #include "GLiveSupport.h" @@ -159,12 +159,12 @@ class BackupView : public LocalizedObject /** * The GLiveSupport object, holding the state of the application. */ - Ptr::Ref gLiveSupport; + Ptr::Ref gLiveSupport; /** * The Glade object, which specifies the visual components. */ - Glib::RefPtr glade; + Glib::RefPtr glade; /** * Event handler for the time chooser button being clicked. diff --git a/campcaster/src/products/gLiveSupport/src/DateTimeChooserWindow.cxx b/campcaster/src/products/gLiveSupport/src/DateTimeChooserWindow.cxx new file mode 100644 index 000000000..35667917f --- /dev/null +++ b/campcaster/src/products/gLiveSupport/src/DateTimeChooserWindow.cxx @@ -0,0 +1,128 @@ +/*------------------------------------------------------------------------------ + + Copyright (c) 2004 Media Development Loan Fund + + This file is part of the Campcaster project. + http://campcaster.campware.org/ + To report bugs, send an e-mail to bugs@campware.org + + Campcaster is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + Campcaster is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Campcaster; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + + Author : $Author: fgerlits $ + Version : $Revision$ + Location : $URL: svn+ssh://fgerlits@code.campware.org/home/svn/repo/livesupport/trunk/livesupport/src/modules/widgets/src/DateTimeChooserWindow.cxx $ + +------------------------------------------------------------------------------*/ + +/* ============================================================ include files */ + +#ifdef HAVE_CONFIG_H +#include "configure.h" +#endif + +#include "DateTimeChooserWindow.h" + + +using namespace LiveSupport::GLiveSupport; + +/* =================================================== local data structures */ + + +/* ================================================ local constants & macros */ + +namespace { + +/*------------------------------------------------------------------------------ + * The name of the glade file. + *----------------------------------------------------------------------------*/ +const Glib::ustring gladeFileName = "DateTimeChooserWindow.glade"; + +} + +/* =============================================== local function prototypes */ + + +/* ============================================================= module code */ + +/*------------------------------------------------------------------------------ + * Constructor. + *----------------------------------------------------------------------------*/ +DateTimeChooserWindow :: DateTimeChooserWindow( + Ptr::Ref gLiveSupport) + throw () +{ + Ptr::Ref + bundle = gLiveSupport->getBundle("dateTimeChooserWindow"); + setBundle(bundle); + + Glib::ustring gladeDir = gLiveSupport->getGladeDir(); + Glib::RefPtr + glade = Gnome::Glade::Xml::create(gladeDir + gladeFileName); + + glade->get_widget("mainWindow1", mainWindow); + mainWindow->set_title(*getResourceUstring("windowTitle")); + + Gtk::Label * hourLabel; + Gtk::Label * minuteLabel; + glade->get_widget("hourLabel1", hourLabel); + glade->get_widget("minuteLabel1", minuteLabel); + hourLabel->set_label(*getResourceUstring("hourLabel")); + minuteLabel->set_label(*getResourceUstring("minuteLabel")); + + glade->get_widget("calendar1", calendar); + glade->get_widget("hourSpinButton1", hourEntry); + glade->get_widget("minuteSpinButton1", minuteEntry); + + glade->get_widget("okButton1", okButton); + okButton->signal_clicked().connect(sigc::mem_fun(*this, + &DateTimeChooserWindow::onOkButtonClicked)); +} + + +/*------------------------------------------------------------------------------ + * Event handler for the OK button clicked. + *----------------------------------------------------------------------------*/ +void +DateTimeChooserWindow :: onOkButtonClicked(void) throw () +{ + unsigned int year; + unsigned int month; + unsigned int day; + calendar->get_date(year, month, day); + ++month; // Gtk+ months are 0-based, Boost months are 1-based + + int hours = hourEntry->get_value_as_int(); + int minutes = minuteEntry->get_value_as_int(); + + chosenDateTime.reset(new boost::posix_time::ptime( + boost::gregorian::date(year, month, day), + boost::posix_time::time_duration(hours, minutes, 0) )); + + mainWindow->hide(); +} + + +/*------------------------------------------------------------------------------ + * Show the window and return the button clicked. + *----------------------------------------------------------------------------*/ +Ptr::Ref +DateTimeChooserWindow :: run(void) throw () +{ + chosenDateTime.reset(); + Gtk::Main::run(*mainWindow); + return chosenDateTime; +} + diff --git a/campcaster/src/modules/widgets/include/LiveSupport/Widgets/DateTimeChooserWindow.h b/campcaster/src/products/gLiveSupport/src/DateTimeChooserWindow.h similarity index 74% rename from campcaster/src/modules/widgets/include/LiveSupport/Widgets/DateTimeChooserWindow.h rename to campcaster/src/products/gLiveSupport/src/DateTimeChooserWindow.h index f32e36f07..cff10f55b 100644 --- a/campcaster/src/modules/widgets/include/LiveSupport/Widgets/DateTimeChooserWindow.h +++ b/campcaster/src/products/gLiveSupport/src/DateTimeChooserWindow.h @@ -40,23 +40,20 @@ #include "configure.h" #endif -#include -#include -#include -#include +#include +#include +#include #include #include "LiveSupport/Core/Ptr.h" #include "LiveSupport/Core/LocalizedObject.h" -#include "LiveSupport/Widgets/EntryBin.h" +#include "GLiveSupport.h" -#include "LiveSupport/Widgets/WhiteWindow.h" namespace LiveSupport { -namespace Widgets { +namespace GLiveSupport { using namespace LiveSupport::Core; -using namespace boost::posix_time; /* ================================================================ constants */ @@ -69,10 +66,6 @@ using namespace boost::posix_time; /** * A dialog window for choosing a date/time. * - * The constructor is called with a resource bundle. The resource bundle - * is expected to contain keys named cancelButtonLabel, okButtonLabel, - * hourLabel and minuteLabel. - * * The return value of the run() method is a boost::posix_time::ptime value. * The DateTimeChooserWindow object is not destroyed when it returns from * run(); it is the responsibility of the caller to delete it (or it can be @@ -81,53 +74,60 @@ using namespace boost::posix_time; * @author $Author: fgerlits $ * @version $Revision$ */ -class DateTimeChooserWindow : public WhiteWindow, - public LocalizedObject +class DateTimeChooserWindow : public LocalizedObject { private: + + /** + * The main window for this class. + */ + Gtk::Dialog * mainWindow; + /** * The calendar where the date is chosen. */ - Gtk::Calendar * calendar; + Gtk::Calendar * calendar; /** - * The entry field for the hour. + * The entry field for hours. */ - EntryBin * hourEntry; + Gtk::SpinButton * hourEntry; + + /** + * The entry field for minutes. + */ + Gtk::SpinButton * minuteEntry; /** - * The entry field for the minute. + * The OK button */ - EntryBin * minuteEntry; + Gtk::Button * okButton; /** - * The return value; set to 0 if the user pressed Cancel. + * The return value; set to 0 if the user closed the window. */ - Ptr::Ref chosenDateTime; + Ptr::Ref chosenDateTime; protected: - /** - * The event handler for the Cancel button clicked. - */ - void - onCancelButtonClicked(void) throw (); /** * The event handler for the OK button clicked. */ - void + virtual void onOkButtonClicked(void) throw (); public: + /** * Constructor. * - * @param bundle a resource bundle containing the localized - * button labels + * @param gLiveSupport the gLiveSupport object, containing + * all the vital info. */ - DateTimeChooserWindow(Ptr::Ref bundle) throw (); + DateTimeChooserWindow(Ptr::Ref gLiveSupport) + throw (); /** * A virtual destructor, as this class has virtual functions. @@ -142,7 +142,7 @@ class DateTimeChooserWindow : public WhiteWindow, * The returned value may be a 0 pointer (if the user pressed Cancel), * and it may be not_a_date_time, if the user's selection is invalid. */ - Ptr::Ref + Ptr::Ref run(void) throw (); }; @@ -153,7 +153,7 @@ class DateTimeChooserWindow : public WhiteWindow, /* ====================================================== function prototypes */ -} // namespace Widgets +} // namespace GLiveSupport } // namespace LiveSupport #endif // DateTimeChooserWindow_h diff --git a/campcaster/src/products/gLiveSupport/src/GLiveSupport.h b/campcaster/src/products/gLiveSupport/src/GLiveSupport.h index 7fa577a5d..8fe448296 100644 --- a/campcaster/src/products/gLiveSupport/src/GLiveSupport.h +++ b/campcaster/src/products/gLiveSupport/src/GLiveSupport.h @@ -1413,6 +1413,17 @@ class GLiveSupport : public LocalizedConfigurable, */ void updateRds(void) throw (); + + /** + * Return the directory where the Glade files are. + * + * @return the directory where the Glade files are. + */ + Glib::ustring + getGladeDir(void) throw () + { + return gladeDir; + } }; /* ================================================= external data structures */ diff --git a/campcaster/src/products/gLiveSupport/src/SchedulePlaylistWindow.cxx b/campcaster/src/products/gLiveSupport/src/SchedulePlaylistWindow.cxx index 0bb3e96e1..86cc4fe85 100644 --- a/campcaster/src/products/gLiveSupport/src/SchedulePlaylistWindow.cxx +++ b/campcaster/src/products/gLiveSupport/src/SchedulePlaylistWindow.cxx @@ -133,13 +133,8 @@ SchedulePlaylistWindow :: onScheduleButtonClicked (void) throw () int seconds = secondEntry->get_value_as_int(); Ptr::Ref dateTime(new boost::posix_time::ptime( - boost::gregorian::date(year, - month, - day), - boost::posix_time::time_duration( - hours, - minutes, - seconds) )); + boost::gregorian::date(year, month, day), + boost::posix_time::time_duration(hours, minutes, seconds) )); try { gLiveSupport->schedulePlaylist(playlist, dateTime); diff --git a/campcaster/src/products/gLiveSupport/var/glade/DateTimeChooserWindow.glade b/campcaster/src/products/gLiveSupport/var/glade/DateTimeChooserWindow.glade new file mode 100644 index 000000000..28d2c67f2 --- /dev/null +++ b/campcaster/src/products/gLiveSupport/var/glade/DateTimeChooserWindow.glade @@ -0,0 +1,150 @@ + + + + + + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 8 + GTK_WIN_POS_CENTER_ON_PARENT + GDK_WINDOW_TYPE_HINT_DIALOG + False + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 8 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 8 + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + False + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 8 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + hours: + + + False + False + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 23 1 10 10 + + + False + False + 1 + + + + + False + False + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 3 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + minutes: + + + False + False + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 0 59 1 10 10 + + + False + False + 1 + + + + + False + False + 1 + + + + + False + False + 1 + + + + + 1 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + GTK_BUTTONBOX_END + + + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + gtk-ok + True + -5 + + + False + False + + + + + False + False + GTK_PACK_END + + + + + +