mirror of
https://github.com/transmission/transmission.git
synced 2025-12-26 21:29:18 +00:00
Switch to Gtk::Builder for all UI in GTK client (#3781)
* Move CSS definitions to resources * Add Gtk::Builder helpers * Switch StatsDialog to Gtk::Builder * Switch RelocateDialog to Gtk::Builder * Switch OptionsDialog to Gtk::Builder * Switch MakeDialog to Gtk::Builder * Switch FilterBar to Gtk::Builder * Switch MainWindow to Gtk::Builder * Switch MessageLogWindow to Gtk::Builder * Switch DetailsDialog to Gtk::Builder * Switch PrefsDialog to Gtk::Builder * Fixup translatable strings Since this branch was brewing for a while, changes happened in the meantime.
This commit is contained in:
@@ -16,6 +16,12 @@ class Session;
|
||||
class MainWindow : public Gtk::ApplicationWindow
|
||||
{
|
||||
public:
|
||||
MainWindow(
|
||||
BaseObjectType* cast_item,
|
||||
Glib::RefPtr<Gtk::Builder> const& builder,
|
||||
Gtk::Application& app,
|
||||
Glib::RefPtr<Gio::ActionGroup> const& actions,
|
||||
Glib::RefPtr<Session> const& core);
|
||||
~MainWindow() override;
|
||||
|
||||
TR_DISABLE_COPY_MOVE(MainWindow)
|
||||
@@ -30,9 +36,6 @@ public:
|
||||
void set_busy(bool isBusy);
|
||||
void refresh();
|
||||
|
||||
protected:
|
||||
MainWindow(Gtk::Application& app, Glib::RefPtr<Gio::ActionGroup> const& actions, Glib::RefPtr<Session> const& core);
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
std::unique_ptr<Impl> const impl_;
|
||||
|
||||
Reference in New Issue
Block a user