[gtranslator/gtk4: 5/52] replaced GtkBin with GtkFrame in search bar
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator/gtk4: 5/52] replaced GtkBin with GtkFrame in search bar
- Date: Mon, 5 Sep 2022 15:17:49 +0000 (UTC)
commit 6badc9004163a6a4da8964542f8af80a5d63d3ac
Author: afshan ahmed khan <afshanahmeda2k gmail com>
Date: Sun May 22 11:59:51 2022 +0530
replaced GtkBin with GtkFrame in search bar
src/gtr-search-bar.c | 6 +++---
src/gtr-search-bar.h | 2 +-
src/gtr-search-bar.ui | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gtr-search-bar.c b/src/gtr-search-bar.c
index 6b34ec48..6d024f47 100644
--- a/src/gtr-search-bar.c
+++ b/src/gtr-search-bar.c
@@ -30,7 +30,7 @@
struct _GtrSearchBar
{
- GtkBin parent_instance;
+ GtkFrame parent_instance;
GBindingGroup *search_bindings;
@@ -74,7 +74,7 @@ enum {
N_SIGNALS
};
-G_DEFINE_FINAL_TYPE (GtrSearchBar, gtr_search_bar, GTK_TYPE_BIN)
+G_DEFINE_FINAL_TYPE (GtrSearchBar, gtr_search_bar, GTK_TYPE_FRAME)
static GParamSpec *properties [N_PROPS];
static guint signals [N_SIGNALS];
@@ -747,4 +747,4 @@ GtkSearchEntry *
gtr_search_bar_get_search (GtrSearchBar *self)
{
return (GtkSearchEntry *) self->search_entry;
-}
\ No newline at end of file
+}
diff --git a/src/gtr-search-bar.h b/src/gtr-search-bar.h
index 1df1ca9e..fd348325 100644
--- a/src/gtr-search-bar.h
+++ b/src/gtr-search-bar.h
@@ -25,7 +25,7 @@ G_BEGIN_DECLS
#define GTR_TYPE_SEARCH_BAR (gtr_search_bar_get_type())
-G_DECLARE_FINAL_TYPE (GtrSearchBar, gtr_search_bar, GTR, SEARCH_BAR, GtkBin)
+G_DECLARE_FINAL_TYPE (GtrSearchBar, gtr_search_bar, GTR, SEARCH_BAR, GtkFrame)
enum
{
diff --git a/src/gtr-search-bar.ui b/src/gtr-search-bar.ui
index eb32eb51..40e86a39 100644
--- a/src/gtr-search-bar.ui
+++ b/src/gtr-search-bar.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
- <template class="GtrSearchBar" parent="GtkBin">
+ <template class="GtrSearchBar" parent="GtkFrame">
<style>
<class name="search-frame"/>
</style>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]