Some minor whitespace fixups

We should really just get a clang-format config that's close enough and
set that up instead.
This commit is contained in:
Arun Raghavan 2024-04-15 17:38:36 -04:00
parent a1ac8eb8d3
commit 44f984883f
3 changed files with 4 additions and 5 deletions

View File

@ -271,7 +271,7 @@ void DeviceWidget::openRenamePopup(const Glib::VariantBase& parameter) {
RenameWindow::RenameWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& x, const gchar* name, const gchar* key) :
Gtk::ApplicationWindow(cobject),
deviceKey(key){
deviceKey(key) {
renameText = x->get_widget<Gtk::Entry>("renameText");
renameText->set_text(name);

View File

@ -76,7 +76,7 @@ MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>
canRenameDevices(false),
m_connected(false),
m_config_filename(NULL) {
ca_context_create (&canberraContext);
ca_context_create(&canberraContext);
ca_context_set_driver(canberraContext, "pulse");
cardsVBox = x->get_widget<Gtk::Box>("cardsVBox");
@ -286,7 +286,7 @@ static void set_icon_name_default(Gtk::Image *i, const char *name) {
iconName = "gtk-missing-image";
break;
}
iconName = iconName.substr(0,lastDashIndex);
iconName = iconName.substr(0, lastDashIndex);
}
i->set_from_icon_name(iconName.c_str());
}

View File

@ -67,8 +67,7 @@ void show_error(Gtk::Widget* widget, const char *txt) {
Gtk::Window* window = Glib::wrap(w);
window->present();
dialog->choose(*window, sigc::ptr_fun(show_error_finish));
}
else {
} else {
dialog->choose(sigc::ptr_fun(show_error_finish));
}
}