Index: remoting/host/continue_window_linux.cc |
diff --git a/remoting/host/continue_window_linux.cc b/remoting/host/continue_window_linux.cc |
index af1e796d234f0696612da0e1565c90d6eea994be..3bc85424fcb27ea7c78c0ba3d85c7c5fb7d5b0f3 100644 |
--- a/remoting/host/continue_window_linux.cc |
+++ b/remoting/host/continue_window_linux.cc |
@@ -70,10 +70,14 @@ void ContinueWindowGtk::CreateWindow() { |
DCHECK(CalledOnValidThread()); |
DCHECK(!continue_window_); |
+ GtkDialogFlags flags = GTK_DIALOG_MODAL; |
+#if GTK_MAJOR_VERSION == 2 |
+ flags = static_cast<GtkDialogFlags>(flags | GTK_DIALOG_NO_SEPARATOR); |
+#endif |
continue_window_ = gtk_dialog_new_with_buttons( |
l10n_util::GetStringUTF8(IDS_PRODUCT_NAME).c_str(), |
nullptr, |
- static_cast<GtkDialogFlags>(GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR), |
+ flags, |
l10n_util::GetStringUTF8(IDS_STOP_SHARING_BUTTON).c_str(), |
GTK_RESPONSE_CANCEL, |
l10n_util::GetStringUTF8(IDS_CONTINUE_BUTTON).c_str(), |