[gnome-subtitles/gtk3] Dialog bugfixing
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles/gtk3] Dialog bugfixing
- Date: Sun, 6 May 2018 09:33:36 +0000 (UTC)
commit eb4016d684e7a24ff737b6dc9c8c8288234055ef
Author: Pedro Castro <pedro gnomesubtitles org>
Date: Sun May 6 10:25:30 2018 +0100
Dialog bugfixing
src/GnomeSubtitles/Dialog/SearchDialog.cs | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/GnomeSubtitles/Dialog/SearchDialog.cs b/src/GnomeSubtitles/Dialog/SearchDialog.cs
index 0876d2f..a5b882f 100644
--- a/src/GnomeSubtitles/Dialog/SearchDialog.cs
+++ b/src/GnomeSubtitles/Dialog/SearchDialog.cs
@@ -1,6 +1,6 @@
/*
* This file is part of Gnome Subtitles.
- * Copyright (C) 2006-2017 Pedro Castro
+ * Copyright (C) 2006-2018 Pedro Castro
*
* Gnome Subtitles is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -117,7 +117,8 @@ public class SearchDialog : BaseDialog {
private Gtk.Dialog BuildDialog() {
Gtk.Dialog dialog = new Gtk.Dialog();
-
+ dialog.Resizable = false; //This way it automatically resizes according to its content in the
2 display modes: find / replace
+
//Content area
Grid grid = new Grid();
@@ -164,9 +165,15 @@ public class SearchDialog : BaseDialog {
dialog.ContentArea.ShowAll();
//Action area
+
buttonReplaceAll = dialog.AddButton(Catalog.GetString("Replace _All"),
(int)SearchDialogResponse.ReplaceAll) as Button;
+ buttonReplaceAll.Sensitive = false;
+
buttonReplace = dialog.AddButton(Catalog.GetString("_Replace"),
(int)SearchDialogResponse.Replace) as Button;
+ buttonReplace.Sensitive = false;
+
buttonFind = dialog.AddButton(Util.GetStockLabel("gtk-find"), (int)SearchDialogResponse.Find)
as Button;
+ buttonFind.Sensitive = false;
dialog.DefaultResponse = (ResponseType)SearchDialogResponse.Find;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]