lib/grumblr/ui.rb in grumblr-2.3.7 vs lib/grumblr/ui.rb in grumblr-2.3.8

- old
+ new

@@ -178,11 +178,11 @@ page.pack_start @video_embed, false page.pack_start scrollable(@video_caption), true @notebook.add_page_with_tab page, 'Video' - if DEBUG + if $DEBUG # Blog info page page = Gtk::VBox.new(false, 4) page.set_border_width 4 @blog_info = Gtk::LabeledTextView.new('') page.pack_start scrollable(@blog_info), true @@ -272,11 +272,11 @@ end combo.signal_connect(:changed) do |widget| $app.blog = $api.blogs[widget.active] $cfg.set :active_blog, $app.blog.name $statusbar.push 0, $app.blog.title - @blog_info.text = $app.blog.pretty_inspect if DEBUG + @blog_info.text = $app.blog.pretty_inspect if $DEBUG @twitter_button.set_active $app.blog.twitter_enabled == "1" ? true : false end combo.set_active(active_blog_idx) item = Gtk::ToolItem.new item.set_expand true @@ -359,10 +359,10 @@ data.merge! concurent_data data.merge! optional_data data.update({:data => File.read(data[:data])}) if data.has_key?(:data) and data[:data] != '' - dump(data) if DEBUG + dump(data) if $DEBUG $api.query 'write', data MessageDialog.new("Message posted", Gtk::Stock::DIALOG_INFO) reset_form message_type rescue Exception