The current widget has a very generic name "EditDialog" - rename it to something that reflects better what it is for. Implement it is as a full GtkWidget using GtkTemplate. Move some of the logic from inside the dialog to the code that creates the dialog so less data is passed around. Store properties using functions instead of g_object_set_data - that passes everything as a gpointer which is easy to make a mistake with.
46 lines
954 B
Meson
46 lines
954 B
Meson
panels_list += cappletname
|
|
desktop = 'gnome-@0@-panel.desktop'.format(cappletname)
|
|
|
|
desktop_in = configure_file(
|
|
input: desktop + '.in.in',
|
|
output: desktop + '.in',
|
|
configuration: desktop_conf
|
|
)
|
|
|
|
i18n.merge_file(
|
|
desktop,
|
|
type: 'desktop',
|
|
input: desktop_in,
|
|
output: desktop,
|
|
po_dir: po_dir,
|
|
install: true,
|
|
install_dir: control_center_desktopdir
|
|
)
|
|
|
|
sources = files(
|
|
'cc-notifications-panel.c',
|
|
'cc-app-notifications-dialog.c'
|
|
)
|
|
|
|
resource_data = files(
|
|
'cc-app-notifications-dialog.ui',
|
|
'notifications.ui'
|
|
)
|
|
|
|
sources += gnome.compile_resources(
|
|
'cc-' + cappletname + '-resources',
|
|
cappletname + '.gresource.xml',
|
|
c_name: 'cc_' + cappletname,
|
|
dependencies: resource_data,
|
|
export: true
|
|
)
|
|
|
|
cflags += '-DGNOMELOCALEDIR="@0@"'.format(control_center_localedir)
|
|
|
|
panels_libs += static_library(
|
|
cappletname,
|
|
sources: sources,
|
|
include_directories: [ top_inc, common_inc ],
|
|
dependencies: common_deps,
|
|
c_args: cflags
|
|
)
|