Skip to content

Commit

Permalink
Core: Remove member functions which are no longer in use (#415)
Browse files Browse the repository at this point in the history
使われなくなったメンバ関数を削除しGTK2対応コードを整理します。
  • Loading branch information
ma8ma committed Jul 25, 2020
1 parent f2e161e commit 30f2171
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
28 changes: 0 additions & 28 deletions src/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ Core::Core( JDWinMain& win_main )

// HTTPクッキー管理マネージャ作成
JDLIB::get_cookie_manager();

#if !GTKMM_CHECK_VERSION(3,0,0)
m_vbox_article.signal_realize().connect( sigc::mem_fun(*this, &Core::slot_realize ) );
m_vbox_article.signal_style_changed().connect( sigc::mem_fun(*this, &Core::slot_style_changed ) );
#endif
}


Expand Down Expand Up @@ -280,29 +275,6 @@ void Core::save_session()
}


// 右ペーンのnotebookのparentであるvboxがrealizeしたらnotebookのstyleを変更する
// テーマによっては notebook の中に notebook を配置すると背景色が正しく
// 出ない問題があるため。開発スレ 493 参照
#if !GTKMM_CHECK_VERSION(3,0,0)
void Core::slot_realize()
{
#ifdef _DEBUG
std::cout << "Core::slot_realize\n";
#endif

slot_style_changed( m_vbox_article.get_style() );
}
#endif // !GTKMM_CHECK_VERSION(3,0,0)


#if !GTKMM_CHECK_VERSION(3,0,0)
void Core::slot_style_changed( Glib::RefPtr< Gtk::Style > )
{
m_notebook_right.set_style( m_vbox_article.get_style() );
}
#endif // !GTKMM_CHECK_VERSION(3,0,0)


Gtk::Widget* Core::get_toplevel()
{
return m_win_main.get_toplevel();
Expand Down
5 changes: 0 additions & 5 deletions src/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ namespace CORE

void set_maintitle();

#if !GTKMM_CHECK_VERSION(3,0,0)
void slot_realize();
void slot_style_changed( Glib::RefPtr< Gtk::Style > );
#endif

void slot_activate_menubar();
void slot_activate_historymenu();

Expand Down

0 comments on commit 30f2171

Please sign in to comment.