Sha256: eb500dd3f47ead7f1ddcfd8e4a027423bbe840b0a755f15ecaab96c3bb472875
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
# encoding: utf-8 require 'ppds/tumblr' require 'grumblr/config' require 'grumblr/ui' require 'gtk2' module Grumblr class Core attr_accessor :blog def initialize $app = self $cfg = Grumblr::Config.new $gui = Grumblr::UI.new $gui.show_all $api = Ppds::Tumblr.new if $api.authenticate($cfg.get(:email), $cfg.get(:password)) $gui.add Grumblr::Dashboard.new else $gui.add Grumblr::SettingsFrame.new end end def main Gtk::main end def quit Gtk::main_quit ensure $cfg.save end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grumblr-2.4.2 | lib/grumblr/core.rb |