Renamed corewidget to basecontainer
This commit is contained in:
parent
31bf0e00b5
commit
2be09d4af9
|
@ -11,9 +11,9 @@ from .right_box import RightBox
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class CoreWidget(Gtk.Box):
|
class BaseContainer(Gtk.Box):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(CoreWidget, self).__init__()
|
super(BaseContainer, self).__init__()
|
||||||
|
|
||||||
self._builder = settings.get_builder()
|
self._builder = settings.get_builder()
|
||||||
|
|
|
@ -13,7 +13,7 @@ from gi.repository import GLib
|
||||||
from .mixins.signals_mixins import SignalsMixins
|
from .mixins.signals_mixins import SignalsMixins
|
||||||
from .controller_data import ControllerData
|
from .controller_data import ControllerData
|
||||||
from .screenshot_controller import ScreenshotController
|
from .screenshot_controller import ScreenshotController
|
||||||
from .containers.core_widget import CoreWidget
|
from .containers.base_container import BaseContainer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,18 +55,18 @@ class Controller(SignalsMixins, ControllerData):
|
||||||
def _load_widgets(self):
|
def _load_widgets(self):
|
||||||
ScreenshotController()
|
ScreenshotController()
|
||||||
|
|
||||||
|
def _tggl_top_main_menubar(self):
|
||||||
|
print("_tggl_top_main_menubar > stub...")
|
||||||
|
|
||||||
def load_glade_file(self):
|
def load_glade_file(self):
|
||||||
self.builder = Gtk.Builder()
|
self.builder = Gtk.Builder()
|
||||||
# self.builder.add_from_file(settings.get_glade_file())
|
# self.builder.add_from_file(settings.get_glade_file())
|
||||||
self.builder.expose_object("main_window", self.window)
|
self.builder.expose_object("main_window", self.window)
|
||||||
|
|
||||||
settings.set_builder(self.builder)
|
settings.set_builder(self.builder)
|
||||||
self.core_widget = CoreWidget()
|
self.base_container = BaseContainer()
|
||||||
|
|
||||||
settings.register_signals_to_builder([self, self.core_widget])
|
settings.register_signals_to_builder([self, self.base_container])
|
||||||
|
|
||||||
def get_core_widget(self):
|
def get_base_container(self):
|
||||||
return self.core_widget
|
return self.base_container
|
||||||
|
|
||||||
def _tggl_top_main_menubar(self):
|
|
||||||
print("_tggl_top_main_menubar > stub...")
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ class ControllerData:
|
||||||
def setup_controller_data(self) -> None:
|
def setup_controller_data(self) -> None:
|
||||||
self.window = settings.get_main_window()
|
self.window = settings.get_main_window()
|
||||||
self.builder = None
|
self.builder = None
|
||||||
self.core_widget = None
|
self.base_container = None
|
||||||
self.was_midified_key = False
|
self.was_midified_key = False
|
||||||
self.ctrl_down = False
|
self.ctrl_down = False
|
||||||
self.shift_down = False
|
self.shift_down = False
|
||||||
|
|
|
@ -67,7 +67,7 @@ class Window(Gtk.ApplicationWindow):
|
||||||
if not self._controller:
|
if not self._controller:
|
||||||
raise ControllerStartException("Controller exited and doesn't exist...")
|
raise ControllerStartException("Controller exited and doesn't exist...")
|
||||||
|
|
||||||
self.add( self._controller.get_core_widget() )
|
self.add( self._controller.get_base_container() )
|
||||||
|
|
||||||
def _set_window_data(self) -> None:
|
def _set_window_data(self) -> None:
|
||||||
screen = self.get_screen()
|
screen = self.get_screen()
|
||||||
|
|
|
@ -3,7 +3,7 @@ Name=Cornea
|
||||||
GenericName=A Python and Gtk+ screenshot application.
|
GenericName=A Python and Gtk+ screenshot application.
|
||||||
Comment=Take screenshots of your desktop.
|
Comment=Take screenshots of your desktop.
|
||||||
Exec=/bin/cornea
|
Exec=/bin/cornea
|
||||||
Icon=/usr/share/cornea/cornea.png
|
Icon=/usr/share/cornea/icons/cornea.png
|
||||||
Type=Application
|
Type=Application
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
Categories=Utility;
|
Categories=Utility;
|
||||||
|
|
Loading…
Reference in New Issue