Lines 418-425
shrinkFilterName( const OUString &rFilte
Link Here
|
418 |
static void |
418 |
static void |
419 |
dialog_remove_buttons(GtkWidget *pActionArea) |
419 |
dialog_remove_buttons(GtkWidget *pActionArea) |
420 |
{ |
420 |
{ |
421 |
GList *pChildren = |
421 |
GtkContainer *pContainer = GTK_CONTAINER( pActionArea ); |
422 |
gtk_container_get_children( GTK_CONTAINER( pActionArea ) ); |
422 |
|
|
|
423 |
g_return_if_fail( pContainer != nullptr ); |
424 |
|
425 |
GList *pChildren = gtk_container_get_children( pContainer ); |
423 |
|
426 |
|
424 |
for( GList *p = pChildren; p; p = p->next ) |
427 |
for( GList *p = pChildren; p; p = p->next ) |
425 |
{ |
428 |
{ |
Lines 436-445
dialog_remove_buttons( GtkDialog *pDialo
Link Here
|
436 |
{ |
439 |
{ |
437 |
g_return_if_fail( GTK_IS_DIALOG( pDialog ) ); |
440 |
g_return_if_fail( GTK_IS_DIALOG( pDialog ) ); |
438 |
|
441 |
|
439 |
#if GTK_CHECK_VERSION(3,0,0) |
|
|
440 |
#if GTK_CHECK_VERSION(3,12,0) |
442 |
#if GTK_CHECK_VERSION(3,12,0) |
441 |
dialog_remove_buttons(gtk_dialog_get_header_bar(pDialog)); |
443 |
dialog_remove_buttons(gtk_dialog_get_header_bar(pDialog)); |
442 |
#endif |
444 |
#endif |
|
|
445 |
#if GTK_CHECK_VERSION(2,14,0) |
443 |
dialog_remove_buttons(gtk_dialog_get_action_area(pDialog)); |
446 |
dialog_remove_buttons(gtk_dialog_get_action_area(pDialog)); |
444 |
#else |
447 |
#else |
445 |
dialog_remove_buttons(pDialog->action_area); |
448 |
dialog_remove_buttons(pDialog->action_area); |