Skip to content

Commit

Permalink
Fix gtk version check
Browse files Browse the repository at this point in the history
  • Loading branch information
thjaeger committed Mar 27, 2013
1 parent 67154e4 commit 7950f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void Win::show_hide_icon() {
icon->signal_size_changed().connect(sigc::mem_fun(*this, &Win::on_icon_size_changed));
icon->signal_activate().connect(sigc::mem_fun(*this, &Win::show_hide));
icon->signal_popup_menu().connect(sigc::mem_fun(*this, &Win::show_popup));
if (gtk_major_version >= 2 && gtk_minor_version >= 15)
if (gtk_major_version > 2 || (gtk_major_version == 2 && gtk_minor_version >= 15))
g_signal_connect(icon->gobj(), "button-release-event", G_CALLBACK(icon_clicked), NULL);
} else {
if (icon)
Expand Down

0 comments on commit 7950f2f

Please sign in to comment.