diff --git a/Dockerfile b/Dockerfile index ff070a43..2ba4b646 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ # Use the libyui/devel image as the base -FROM libyui/devel +FROM registry.opensuse.org/devel/libraries/libyui/containers/libyui-devel:latest + +RUN zypper install -y gtk3-devel COPY . /usr/src/app diff --git a/VERSION.cmake b/VERSION.cmake index 8191c56d..f91765f0 100644 --- a/VERSION.cmake +++ b/VERSION.cmake @@ -1,5 +1,5 @@ SET( VERSION_MAJOR "2" ) -SET( VERSION_MINOR "47" ) +SET( VERSION_MINOR "48" ) SET( VERSION_PATCH "0" ) SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_SHA1}" ) diff --git a/package/libyui-gtk-doc.spec b/package/libyui-gtk-doc.spec index f8705451..156a0187 100644 --- a/package/libyui-gtk-doc.spec +++ b/package/libyui-gtk-doc.spec @@ -20,7 +20,7 @@ %define so_version 11 Name: %{parent}-doc -Version: 2.47.0 +Version: 2.48.0 Release: 0 Source: %{parent}-%{version}.tar.bz2 diff --git a/package/libyui-gtk.changes b/package/libyui-gtk.changes index 11aac8aa..635f82cd 100644 --- a/package/libyui-gtk.changes +++ b/package/libyui-gtk.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 28 20:19:07 CEST 2020 - anaselli@linux.it + +- Added missing abstract methods (copy of Qt behavior) +- Fixed trevis building +- 2.48.0 + ------------------------------------------------------------------- Thu May 28 18:09:47 CEST 2020 - besser82@fedoraproject.org @@ -33,7 +40,6 @@ Thu May 28 18:09:47 CEST 2020 - besser82@fedoraproject.org - 2.47.0 ------------------------------------------------------------------- - Wed Dec 11 09:54:55 UTC 2019 - Rodion Iafarov - Increase SO version to 11 (bsc#1132247) diff --git a/package/libyui-gtk.spec b/package/libyui-gtk.spec index f5832078..14a30d3b 100644 --- a/package/libyui-gtk.spec +++ b/package/libyui-gtk.spec @@ -17,7 +17,7 @@ Name: libyui-gtk -Version: 2.47.0 +Version: 2.48.0 Release: 0 Source: %{name}-%{version}.tar.bz2 diff --git a/src/YGDumbTab.cc b/src/YGDumbTab.cc index c0a420d2..cf56698d 100644 --- a/src/YGDumbTab.cc +++ b/src/YGDumbTab.cc @@ -154,6 +154,15 @@ class YGDumbTab : public YDumbTab, public YGWidget pThis->syncTabPage(); } + // NOTE copy of Qt one + void activate() + { + // send an activation event for this widget + if ( notify() ) + YGUI::ui()->sendEvent( new YWidgetEvent( this,YEvent::Activated ) ); + } + + YGWIDGET_IMPL_CONTAINER (YDumbTab) }; diff --git a/src/YGMenuButton.cc b/src/YGMenuButton.cc index 0f267e94..719544e7 100644 --- a/src/YGMenuButton.cc +++ b/src/YGMenuButton.cc @@ -64,6 +64,14 @@ class YGMenuButton : public YMenuButton, public YGWidget ygtk_menu_button_set_popup (YGTK_MENU_BUTTON (getWidget()), menu); } + // NOTE copy of Qt one + void activateItem( YMenuItem * item ) + { + if ( item ) + YGUI::ui()->sendEvent( new YMenuEvent( item ) ); + } + + YGWIDGET_IMPL_COMMON (YMenuButton) }; diff --git a/src/YGText.cc b/src/YGText.cc index 3fcaf1a3..4a5a9581 100644 --- a/src/YGText.cc +++ b/src/YGText.cc @@ -273,6 +273,13 @@ class YGRichText : public YRichText, YGScrolledWidget virtual unsigned int getMinSize (YUIDimension dim) { return shrinkable() ? 10 : 100; } + // NOTE copy of Qt one + void activateLink( const std::string & url ) + { + YGUI::ui()->sendEvent( new YMenuEvent( url ) ); + } + + YGWIDGET_IMPL_COMMON (YRichText) }; diff --git a/src/YGTreeView.cc b/src/YGTreeView.cc index 90a3c859..6540812d 100644 --- a/src/YGTreeView.cc +++ b/src/YGTreeView.cc @@ -337,6 +337,7 @@ class YGTreeView : public YGScrolledWidget, public YGSelectionStore gtk_widget_queue_draw (pThis->getWidget()); } + static void right_click_cb (YGtkTreeView *view, gboolean outreach, YGTreeView *pThis) { pThis->emitEvent (YEvent::ContextMenuActivated); } }; @@ -833,6 +834,15 @@ class YGTree : public YTree, public YGTreeView } #endif + // NOTE copy of Qt one + void activate() + { + // send an activation event for this widget + if ( notify() ) + YGUI::ui()->sendEvent( new YWidgetEvent( this,YEvent::Activated ) ); + } + + YGLABEL_WIDGET_IMPL (YTree) YGSELECTION_WIDGET_IMPL (YTree) };