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):
|
||||
super(CoreWidget, self).__init__()
|
||||
super(BaseContainer, self).__init__()
|
||||
|
||||
self._builder = settings.get_builder()
|
||||
|
@ -13,7 +13,7 @@ from gi.repository import GLib
|
||||
from .mixins.signals_mixins import SignalsMixins
|
||||
from .controller_data import ControllerData
|
||||
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):
|
||||
ScreenshotController()
|
||||
|
||||
def _tggl_top_main_menubar(self):
|
||||
print("_tggl_top_main_menubar > stub...")
|
||||
|
||||
def load_glade_file(self):
|
||||
self.builder = Gtk.Builder()
|
||||
# self.builder.add_from_file(settings.get_glade_file())
|
||||
self.builder.expose_object("main_window", self.window)
|
||||
|
||||
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):
|
||||
return self.core_widget
|
||||
|
||||
def _tggl_top_main_menubar(self):
|
||||
print("_tggl_top_main_menubar > stub...")
|
||||
def get_base_container(self):
|
||||
return self.base_container
|
||||
|
@ -15,7 +15,7 @@ class ControllerData:
|
||||
def setup_controller_data(self) -> None:
|
||||
self.window = settings.get_main_window()
|
||||
self.builder = None
|
||||
self.core_widget = None
|
||||
self.base_container = None
|
||||
self.was_midified_key = False
|
||||
self.ctrl_down = False
|
||||
self.shift_down = False
|
||||
|
@ -67,7 +67,7 @@ class Window(Gtk.ApplicationWindow):
|
||||
if not self._controller:
|
||||
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:
|
||||
screen = self.get_screen()
|
||||
|
@ -3,7 +3,7 @@ Name=Cornea
|
||||
GenericName=A Python and Gtk+ screenshot application.
|
||||
Comment=Take screenshots of your desktop.
|
||||
Exec=/bin/cornea
|
||||
Icon=/usr/share/cornea/cornea.png
|
||||
Icon=/usr/share/cornea/icons/cornea.png
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
Categories=Utility;
|
||||
|
Loading…
Reference in New Issue
Block a user