summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/glyphs.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2017-07-06 19:05:52 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2017-07-06 19:05:52 +0000
commitb676ea2474b68e17c83dc33ebde3bc36b106c661 (patch)
treeb03b6c5f5bcbefb48a7e882f6c97894f63821d9a /src/ui/dialog/glyphs.cpp
parentGtkmm deprecation fixes (diff)
downloadinkscape-b676ea2474b68e17c83dc33ebde3bc36b106c661.tar.gz
inkscape-b676ea2474b68e17c83dc33ebde3bc36b106c661.zip
Gtkmm deprecation fixes
Diffstat (limited to 'src/ui/dialog/glyphs.cpp')
-rw-r--r--src/ui/dialog/glyphs.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ui/dialog/glyphs.cpp b/src/ui/dialog/glyphs.cpp
index 9c1236ca9..f858a4d55 100644
--- a/src/ui/dialog/glyphs.cpp
+++ b/src/ui/dialog/glyphs.cpp
@@ -12,7 +12,6 @@
#include "glyphs.h"
#include <glibmm/i18n.h>
-#include <gtkmm/alignment.h>
#include <gtkmm/comboboxtext.h>
#include <gtkmm/grid.h>
#include <gtkmm/iconview.h>
@@ -356,7 +355,7 @@ GlyphsPanel::GlyphsPanel(gchar const *prefsPath) :
table->attach( *Gtk::manage(label), 0, row, 1, 1);
- scriptCombo = new Gtk::ComboBoxText();
+ scriptCombo = Gtk::manage(new Gtk::ComboBoxText());
for (std::map<GUnicodeScript, Glib::ustring>::iterator it = getScriptToName().begin(); it != getScriptToName().end(); ++it)
{
scriptCombo->append(it->second);
@@ -365,11 +364,11 @@ GlyphsPanel::GlyphsPanel(gchar const *prefsPath) :
scriptCombo->set_active_text(getScriptToName()[G_UNICODE_SCRIPT_INVALID_CODE]);
sigc::connection conn = scriptCombo->signal_changed().connect(sigc::mem_fun(*this, &GlyphsPanel::rebuild));
instanceConns.push_back(conn);
- Gtk::Alignment *align = Gtk::manage(new Gtk::Alignment(Gtk::ALIGN_START, Gtk::ALIGN_START, 0.0, 0.0));
- align->add(*Gtk::manage(scriptCombo));
- align->set_hexpand();
- table->attach( *align, 1, row, 1, 1);
+ scriptCombo->set_halign(Gtk::ALIGN_START);
+ scriptCombo->set_valign(Gtk::ALIGN_START);
+ scriptCombo->set_hexpand();
+ table->attach(*scriptCombo, 1, row, 1, 1);
}
row++;
@@ -380,7 +379,7 @@ GlyphsPanel::GlyphsPanel(gchar const *prefsPath) :
auto label = new Gtk::Label(_("Range: "));
table->attach( *Gtk::manage(label), 0, row, 1, 1);
- rangeCombo = new Gtk::ComboBoxText();
+ rangeCombo = Gtk::manage(new Gtk::ComboBoxText());
for ( std::vector<NamedRange>::iterator it = getRanges().begin(); it != getRanges().end(); ++it ) {
rangeCombo->append(it->second);
}
@@ -388,10 +387,11 @@ GlyphsPanel::GlyphsPanel(gchar const *prefsPath) :
rangeCombo->set_active_text(getRanges()[1].second);
sigc::connection conn = rangeCombo->signal_changed().connect(sigc::mem_fun(*this, &GlyphsPanel::rebuild));
instanceConns.push_back(conn);
- Gtk::Alignment *align = new Gtk::Alignment(Gtk::ALIGN_START, Gtk::ALIGN_START, 0.0, 0.0);
- align->add(*Gtk::manage(rangeCombo));
- align->set_hexpand();
- table->attach( *Gtk::manage(align), 1, row, 1, 1);
+
+ rangeCombo->set_halign(Gtk::ALIGN_START);
+ rangeCombo->set_valign(Gtk::ALIGN_START);
+ rangeCombo->set_hexpand();
+ table->attach(*rangeCombo, 1, row, 1, 1);
}
row++;