| 117 | } |
| 118 | |
| 119 | static void |
| 120 | ghb_file_button_set_property (GObject *object, guint prop_id, |
| 121 | const GValue *value, GParamSpec *pspec) |
| 122 | { |
| 123 | GhbFileButton *self = GHB_FILE_BUTTON(object); |
| 124 | g_return_if_fail(GHB_IS_FILE_BUTTON(self)); |
| 125 | |
| 126 | switch (prop_id) |
| 127 | { |
| 128 | case PROP_TITLE: |
| 129 | ghb_file_button_set_title(self, g_value_get_string(value)); |
| 130 | break; |
| 131 | |
| 132 | case PROP_ACCEPT_LABEL: |
| 133 | ghb_file_button_set_accept_label(self, g_value_get_string(value)); |
| 134 | break; |
| 135 | |
| 136 | case PROP_FILE: |
| 137 | ghb_file_button_set_filename(self, g_value_get_string(value)); |
| 138 | break; |
| 139 | |
| 140 | case PROP_ACTION: |
| 141 | ghb_file_button_set_action(self, g_value_get_enum(value)); |
| 142 | break; |
| 143 | |
| 144 | default: |
| 145 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | static void |
| 150 | ghb_file_button_init (GhbFileButton *self) |
nothing calls this directly
no test coverage detected