mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-25 21:35:33 +00:00
Ported away from deprecated Gtk::Dialog methods.
This commit is contained in:
Vendored
+4
-4
@@ -30,10 +30,10 @@ target_compile_definitions(app_gtkmm_interface
|
||||
ENABLE_GLIB=1
|
||||
ENABLE_GLIBMM=1
|
||||
# For porting to GTK4
|
||||
# GTK_DISABLE_DEPRECATED=1
|
||||
# GDK_DISABLE_DEPRECATED=1
|
||||
# GTKMM_DISABLE_DEPRECATED=1
|
||||
# GDKMM_DISABLE_DEPRECATED=1
|
||||
GTK_DISABLE_DEPRECATED=1
|
||||
GDK_DISABLE_DEPRECATED=1
|
||||
GTKMM_DISABLE_DEPRECATED=1
|
||||
GDKMM_DISABLE_DEPRECATED=1
|
||||
)
|
||||
|
||||
# Support pre-C++17 glibmm with throw(...) exception specifications
|
||||
|
||||
@@ -135,11 +135,11 @@ bool gui_show_text_entry_dialog(const std::string& title, const std::string& mes
|
||||
vbox.pack_start(input_entry, true, true, 0);
|
||||
vbox.show_all();
|
||||
|
||||
dialog.get_action_area()->set_border_width(5);
|
||||
dialog.get_action_area()->set_spacing(6);
|
||||
dialog.get_content_area()->set_border_width(5);
|
||||
// dialog.get_action_area()->set_spacing(6);
|
||||
|
||||
dialog.get_vbox()->set_spacing(14); // as in MessageDialog
|
||||
dialog.get_vbox()->pack_start(vbox, false, false, 0);
|
||||
dialog.get_content_area()->set_spacing(14); // as in MessageDialog
|
||||
dialog.get_content_area()->pack_start(vbox, false, false, 0);
|
||||
|
||||
|
||||
dialog.add_button("gtk-cancel", Gtk::RESPONSE_CANCEL);
|
||||
|
||||
Reference in New Issue
Block a user