aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authortoshi <toshi@03aab468-d3d2-4883-8b12-f661bbf03fa8>2012-09-14 17:01:32 +0000
committertoshi <toshi@03aab468-d3d2-4883-8b12-f661bbf03fa8>2012-09-14 17:01:32 +0000
commit2e53a9a08ff053445646a7f1d00e0044ff915381 (patch)
tree00ce9c4ea8594756bb6a8b10cdf50a3e5ac65543 /core
parent2ae9588d35203ba012400a82cf3839ee059621d8 (diff)
downloadmikutter-2e53a9a08ff053445646a7f1d00e0044ff915381.tar.gz
スレッド、プロフィールを新しく開いた時にそれがアクティブにならない closes #484
git-svn-id: svn://toshia.dip.jp/mikutter/trunk@955 03aab468-d3d2-4883-8b12-f661bbf03fa8
Diffstat (limited to 'core')
-rw-r--r--core/plugin/gtk/gtk.rb8
-rw-r--r--core/plugin/gui/hierarchy_parent.rb1
-rw-r--r--core/plugin/profile/profile.rb1
-rw-r--r--core/plugin/smartthread/smartthread.rb1
4 files changed, 11 insertions, 0 deletions
diff --git a/core/plugin/gtk/gtk.rb b/core/plugin/gtk/gtk.rb
index 7c87a706..9d119c41 100644
--- a/core/plugin/gtk/gtk.rb
+++ b/core/plugin/gtk/gtk.rb
@@ -317,6 +317,14 @@ Plugin.create :gtk do
if not statusbar.destroyed?
statusbar.remove(cid, mid) end } end end
+ on_gui_child_activated do |i_pane, i_tab|
+ if i_pane.is_a?(Plugin::GUI::Pane) and i_tab.is_a?(Plugin::GUI::Tab)
+ notice "gui_child_activated: tab active #{i_pane} => #{i_tab}"
+ pane = widgetof(i_pane)
+ tab = widgetof(i_tab)
+ if pane and tab
+ pane.page = pane.get_tab_pos_by_tab(tab) end end end
+
filter_gui_postbox_input_editable do |i_postbox, editable|
postbox = widgetof(i_postbox)
if postbox
diff --git a/core/plugin/gui/hierarchy_parent.rb b/core/plugin/gui/hierarchy_parent.rb
index fdc55d4f..1a2a388a 100644
--- a/core/plugin/gui/hierarchy_parent.rb
+++ b/core/plugin/gui/hierarchy_parent.rb
@@ -61,6 +61,7 @@ module Plugin::GUI::HierarchyParent
def set_active_child(child)
type_strict child => tcor(Plugin::GUI::HierarchyChild, NilClass)
@active_child = child
+ Plugin.call(:gui_child_activated, self, child)
notice "active child set #{self.inspect} => #{child.inspect}"
self end
diff --git a/core/plugin/profile/profile.rb b/core/plugin/profile/profile.rb
index 6b60ed1a..e219988c 100644
--- a/core/plugin/profile/profile.rb
+++ b/core/plugin/profile/profile.rb
@@ -28,6 +28,7 @@ Plugin.create :profile do
expand
profile nil end
Plugin.call(:profiletab, i_profile, user)
+ i_profile.active!
end
profiletab :usertimeline, "最近のツイート" do
diff --git a/core/plugin/smartthread/smartthread.rb b/core/plugin/smartthread/smartthread.rb
index 15a3bf39..aba14efc 100644
--- a/core/plugin/smartthread/smartthread.rb
+++ b/core/plugin/smartthread/smartthread.rb
@@ -35,6 +35,7 @@ Plugin.create :smartthread do
timeline slug end
@timelines[slug] = opt.messages.map(&:ancestor).uniq
timeline(slug) << opt.messages.map(&:around).flatten
+ timeline(slug).active!
}
onappear do |messages|