From 222cefd36299d85575c3f11f5224b2241b325215 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sat, 30 Jul 2016 11:32:07 +0200 Subject: GTK+-3 search-dialog: add pluma-search-dialog-gtk3.ui replace depreprecated widgets from old UI file --- configure.ac | 2 + pluma/dialogs/Makefile.am | 7 + pluma/dialogs/pluma-search-dialog-gtk3.ui | 272 ++++++++++++++++++++++++++++++ 3 files changed, 281 insertions(+) create mode 100644 pluma/dialogs/pluma-search-dialog-gtk3.ui diff --git a/configure.ac b/configure.ac index 190e59e1..26da2bce 100644 --- a/configure.ac +++ b/configure.ac @@ -173,6 +173,8 @@ case "$with_gtk" in esac AC_SUBST(GTK_API_VERSION) +AM_CONDITIONAL([WITH_GTK3],[test "$with_gtk" = "3.0"]) + PKG_CHECK_MODULES(GMODULE,gmodule-2.0,[GMODULE_ADD="gmodule-2.0"],[GMODULE_ADD=""]) PKG_CHECK_MODULES(PLUMA, [ libxml-2.0 >= 2.5.0 diff --git a/pluma/dialogs/Makefile.am b/pluma/dialogs/Makefile.am index 19a5c18e..239e94fe 100755 --- a/pluma/dialogs/Makefile.am +++ b/pluma/dialogs/Makefile.am @@ -21,10 +21,17 @@ libdialogs_la_SOURCES = \ pluma-search-dialog.h \ pluma-search-dialog.c +if WITH_GTK3 +ui_DATA = \ + pluma-encodings-dialog.ui \ + pluma-preferences-dialog.ui \ + pluma-search-dialog-gtk3.ui +else ui_DATA = \ pluma-encodings-dialog.ui \ pluma-preferences-dialog.ui \ pluma-search-dialog.ui +endif EXTRA_DIST = $(ui_DATA) diff --git a/pluma/dialogs/pluma-search-dialog-gtk3.ui b/pluma/dialogs/pluma-search-dialog-gtk3.ui new file mode 100644 index 00000000..a1a37b5d --- /dev/null +++ b/pluma/dialogs/pluma-search-dialog-gtk3.ui @@ -0,0 +1,272 @@ + + + + + + + + + + + + False + Replace + False + dialog + + + True + False + vertical + 8 + + + True + False + + + + gtk-close + True + True + True + False + True + + + True + True + 0 + + + + + Replace All + True + True + True + False + True + + + True + True + 1 + + + + + Replace + True + True + True + False + True + + + True + True + 2 + + + + + gtk-find + True + True + True + False + True + + + True + True + 3 + + + + + False + False + end + 0 + + + + + True + False + 5 + vertical + 18 + + + True + False + 12 + 12 + + + True + False + start + _Search for: + True + + + 0 + 0 + + + + + True + False + Replace _with: + True + + + 0 + 1 + + + + + True + True + 0 + + + + + True + False + vertical + 12 + + + _Match case + True + True + False + start + True + True + + + False + False + 0 + + + + + Match _entire word only + True + True + False + start + True + True + + + False + False + 1 + + + + + Search _backwards + True + True + False + start + True + True + + + False + False + 2 + + + + + _Wrap around + True + True + False + start + True + True + True + + + False + False + 3 + + + + + _Parse escape sequences (e.g. \n) + True + True + False + start + True + True + True + + + False + False + 4 + + + + + True + True + 1 + + + + + True + True + 1 + + + + + + close_button + replace_all_button + replace_button + find_next_button + + + -- cgit v1.2.1